mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
widget remove functions & lots of widget updates
This commit is contained in:
parent
eac5d0e948
commit
f8df1d5f9e
@ -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
Loading…
Reference in New Issue
Block a user