diff --git a/Bootstrap.Admin/Content/js/Longbow.Common.js b/Bootstrap.Admin/Content/js/Longbow.Common.js index 94ad01d5..1b3b36c6 100644 --- a/Bootstrap.Admin/Content/js/Longbow.Common.js +++ b/Bootstrap.Admin/Content/js/Longbow.Common.js @@ -158,6 +158,11 @@ clickToSelect: false, }, options); $(this).bootstrapTable(settings); + $('.toolbar').insertBefore($('.bootstrap-table > .fixed-table-toolbar > .bs-bars')); + $('.toolbar a').click(function () { + var ctl = $('#' + $(this).attr('id').replace('tb_', 'btn_')); + ctl.trigger("click"); + }); } }); })(jQuery); diff --git a/Bootstrap.Admin/Content/js/common-scripts.js b/Bootstrap.Admin/Content/js/common-scripts.js index 8d4167e3..89dab3a9 100644 --- a/Bootstrap.Admin/Content/js/common-scripts.js +++ b/Bootstrap.Admin/Content/js/common-scripts.js @@ -71,12 +71,4 @@ $(function () { //$("html").niceScroll({styler:"fb",cursorcolor:"#e8403f", cursorwidth: '6', cursorborderradius: '10px', background: '#404040', spacebarenabled:false, cursorborder: '', zindex: '1000', scrollspeed: 100, mousescrollstep: 60}); //$(".table-responsive").niceScroll({ styler: "fb", cursorcolor: "#e8403f", cursorwidth: '6', cursorborderradius: '10px', background: '#404040', spacebarenabled: false, cursorborder: '', zindex: '1000', horizrailenabled: true }); - - - $('.toolbar').insertBefore($('.bootstrap-table > .fixed-table-toolbar > .bs-bars')); - - $('.toolbar a').click(function () { - var ctl = $('#' + $(this).attr('id').replace('tb_', 'btn_')); - ctl.trigger("click"); - }); })(jQuery); \ No newline at end of file