* improve js efficiency when operate table rows.
This commit is contained in:
+1
-1
@@ -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');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user