mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
Static row widget works with multi-tbodies
This commit is contained in:
parent
e6646c64c0
commit
21b205dcd3
@ -78,7 +78,8 @@ ts.addWidget({
|
||||
hasShuffled = true;
|
||||
indx = 0;
|
||||
$rows = $tbody.children(wo.staticRow_class);
|
||||
max = $rows.length - 1;
|
||||
numRows = $tbody.children('tr').length - 1;
|
||||
max = $rows.length;
|
||||
|
||||
// don't allow the while loop to cycle more times than the set number of static rows
|
||||
while (hasShuffled && indx < max) {
|
||||
@ -92,7 +93,6 @@ ts.addWidget({
|
||||
if (targetIndex !== $(this).index()) {
|
||||
hasShuffled = true;
|
||||
$thisRow = $(this).detach();
|
||||
numRows = $tbody.find('tr').length - 1;
|
||||
|
||||
if (targetIndex >= numRows) {
|
||||
// Are we trying to be the last row?
|
||||
|
Loading…
Reference in New Issue
Block a user