widget remove functions & lots of widget updates

This commit is contained in:
Rob Garrison 2012-08-18 21:10:01 -05:00
parent eac5d0e948
commit f8df1d5f9e
2 changed files with 606 additions and 264 deletions

View File

@ -1307,6 +1307,16 @@
if (c.debug) { if (c.debug) {
ts.benchmark("Applying Zebra widget", time); ts.benchmark("Applying Zebra widget", time);
} }
},
remove: function(table, c, wo){
var k, $tb,
b = $(table).children('tbody:not(.' + c.cssInfoBlock + ')'),
rmv = (c.widgetOptions.zebra || [ "even", "odd" ]).join(' ');
for (k = 0; k < b.length; k++ ){
$tb = $.tablesorter.processTbody(table, $(b[k]), true); // remove tbody
$tb.children().removeClass(rmv);
$.tablesorter.processTbody(table, $tb, false); // restore tbody
}
} }
}); });

File diff suppressed because it is too large Load Diff