diff --git a/Bootstrap.Admin/Content/js/Longbow.Common.js b/Bootstrap.Admin/Content/js/Longbow.Common.js index 25e06333..3fbaa39f 100644 --- a/Bootstrap.Admin/Content/js/Longbow.Common.js +++ b/Bootstrap.Admin/Content/js/Longbow.Common.js @@ -312,7 +312,8 @@ }, options); $(this).bootstrapTable(settings); var $toolbar = $('div.toolbar'); - $toolbar.on('click', 'a', function () { + $toolbar.on('click', 'a', function (e) { + e.preventDefault(); var ctl = $('#' + $(this).attr('id').replace('tb_', 'btn_')); ctl.trigger("click"); }).insertBefore($('div.bootstrap-table > div.fixed-table-toolbar > div.bs-bars')); diff --git a/Bootstrap.Admin/Content/js/framework.js b/Bootstrap.Admin/Content/js/framework.js index 1a865421..4f8baf3a 100644 --- a/Bootstrap.Admin/Content/js/framework.js +++ b/Bootstrap.Admin/Content/js/framework.js @@ -45,7 +45,8 @@ var source = $("#" + cId); source.data('click', name); if (event !== null) source.data('event', event); - source.click(function () { + source.click(function (e) { + e.preventDefault(); var method = source.data('click'); BootstrapAdmin.prototype[method].call(that, this, source.data('event')); });