修复BUG,微缩版toolbar应该在BootstrapTable设置好后再设置,防止停留在原地不动

This commit is contained in:
Argo-Lenovo 2016-11-09 17:24:35 +08:00
parent 5f4e12c7fa
commit 71b7fde64c
2 changed files with 5 additions and 8 deletions

View File

@ -158,6 +158,11 @@
clickToSelect: false, clickToSelect: false,
}, options); }, options);
$(this).bootstrapTable(settings); $(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); })(jQuery);

View File

@ -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}); //$("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 }); //$(".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); })(jQuery);