精简按钮栏代码

This commit is contained in:
Argo-Lenovo 2017-03-02 17:43:09 +08:00
parent 98d1344700
commit 3375273c59
1 changed files with 1 additions and 2 deletions

View File

@ -316,8 +316,7 @@
clickToSelect: false
}, options);
$(this).bootstrapTable(settings);
var $toolbar = $('div.toolbar');
$toolbar.on('click', 'a', function (e) {
$('div.toolbar').on('click', 'a', function (e) {
e.preventDefault();
var ctl = $('#' + $(this).attr('id').replace('tb_', 'btn_'));
ctl.trigger("click");