success:function (res) { if (res == "ok") { // $('#dg').bootstrapTable(('refresh')); if (location.href.indexOf("#reloaded") == -1) { location.href = location.href + "#reloaded"; location.reload(); } }}