精简按钮栏代码
This commit is contained in:
parent
98d1344700
commit
3375273c59
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue