精简按钮栏代码
This commit is contained in:
parent
98d1344700
commit
3375273c59
|
@ -316,8 +316,7 @@
|
||||||
clickToSelect: false
|
clickToSelect: false
|
||||||
}, options);
|
}, options);
|
||||||
$(this).bootstrapTable(settings);
|
$(this).bootstrapTable(settings);
|
||||||
var $toolbar = $('div.toolbar');
|
$('div.toolbar').on('click', 'a', function (e) {
|
||||||
$toolbar.on('click', 'a', function (e) {
|
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
var ctl = $('#' + $(this).attr('id').replace('tb_', 'btn_'));
|
var ctl = $('#' + $(this).attr('id').replace('tb_', 'btn_'));
|
||||||
ctl.trigger("click");
|
ctl.trigger("click");
|
||||||
|
|
Loading…
Reference in New Issue