mirror of
https://github.com/Mottie/tablesorter.git
synced 2025-01-12 15:24:21 +00:00
Core: use :last to maintain jQuery v1.2.6 compatibility
This commit is contained in:
parent
1d3f61faca
commit
bab36c48dc
@ -502,7 +502,8 @@
|
|||||||
for (indx = 0; indx < c.columns; indx++) {
|
for (indx = 0; indx < c.columns; indx++) {
|
||||||
$t = c.$headers.filter('[data-column="' + indx + '"]');
|
$t = c.$headers.filter('[data-column="' + indx + '"]');
|
||||||
// target sortable column cells, unless there are none, then use non-sortable cells
|
// target sortable column cells, unless there are none, then use non-sortable cells
|
||||||
c.$headerIndexed[indx] = $t.not('.sorter-false').length ? $t.not('.sorter-false').last() : $t.last();
|
// .last() added in jQuery 1.4; use .filter(':last') to maintain compatibility with jQuery v1.2.6
|
||||||
|
c.$headerIndexed[indx] = $t.not('.sorter-false').length ? $t.not('.sorter-false').filter(':last') : $t.filter(':last');
|
||||||
}
|
}
|
||||||
$(table).find(c.selectorHeaders).attr({
|
$(table).find(c.selectorHeaders).attr({
|
||||||
scope: 'col',
|
scope: 'col',
|
||||||
|
Loading…
Reference in New Issue
Block a user