优化Longbow.Common.js内部一个js脚本

This commit is contained in:
Argo-Lenovo 2016-12-15 13:27:34 +08:00
parent 1e55674122
commit bf2a8410cb
1 changed files with 2 additions and 2 deletions

View File

@ -309,11 +309,11 @@
clickToSelect: false clickToSelect: false
}, options); }, options);
$(this).bootstrapTable(settings); $(this).bootstrapTable(settings);
$('div.toolbar').insertBefore($('div.bootstrap-table > div.fixed-table-toolbar > div.bs-bars')); var $toolbar = $('div.toolbar');
$('div.toolbar').on('click', 'a', function () { $('div.toolbar').on('click', 'a', function () {
var ctl = $('#' + $(this).attr('id').replace('tb_', 'btn_')); var ctl = $('#' + $(this).attr('id').replace('tb_', 'btn_'));
ctl.trigger("click"); ctl.trigger("click");
}); }).insertBefore($('div.bootstrap-table > div.fixed-table-toolbar > div.bs-bars'));
}, },
select: function () { select: function () {
var $this = $(this); var $this = $(this);