* improve js efficiency when operate table rows.

This commit is contained in:
Catouse
2014-12-08 18:03:06 +08:00
parent da30077232
commit 9d349c87ee
+1 -1
View File
@@ -1161,7 +1161,7 @@ function setModal4List(triggerClass, replaceID, callback, width)
*/
function setTableBehavior()
{
$('#wrap .table:not(.table-data, .table-form, .active-disabled) tbody tr:not(.active-disabled) td').click(function(){$(this).closest('tr').toggleClass('active');});
$('#wrap .table:not(.table-data, .table-form, .active-disabled)').on('click', 'tbody tr:not(.active-disabled) td', function(){$(this).closest('tr').toggleClass('active');});
$('#wrap .outer > .table, #wrap .outer > form > .table, #wrap .outer > .mian > .table, #wrap .outer > .mian > form > .table, #wrap .outer > .container > .table').not('.table-data, .table-form, .table-custom').addClass('table table-condensed table-hover table-striped tablesorter');
}