Remove widgetZebra initialization
WidgetZebra is not needed anymore, row background coloring is now done with CSS pseudo-class. Signed-off-by: Patric Gustafsson <patricjgustafsson@outlook.com>
This commit is contained in:
parent
640bbe1dfe
commit
76be08a7a1
@ -6,7 +6,6 @@ function initTableSorter(tabid) {
|
||||
$table = $('#serverstatusqueriesdetails');
|
||||
opts = {
|
||||
sortList: [[3, 1]],
|
||||
widgets: ['fast-zebra'],
|
||||
headers: {
|
||||
1: { sorter: 'fancyNumber' },
|
||||
2: { sorter: 'fancyNumber' }
|
||||
@ -67,17 +66,4 @@ $(function () {
|
||||
},
|
||||
type: "numeric"
|
||||
});
|
||||
|
||||
// faster zebra widget: no row visibility check, faster css class switching, no cssChildRow check
|
||||
$.tablesorter.addWidget({
|
||||
id: "fast-zebra",
|
||||
format: function (table) {
|
||||
$("tr:even", table.tBodies[0])
|
||||
.removeClass(table.config.widgetZebra.css[0])
|
||||
.addClass(table.config.widgetZebra.css[1]);
|
||||
$("tr:odd", table.tBodies[0])
|
||||
.removeClass(table.config.widgetZebra.css[1])
|
||||
.addClass(table.config.widgetZebra.css[0]);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user