Lines 1623-1629
Link Here
|
1623 |
var value = parseInt($(this).val()); |
1623 |
var value = parseInt($(this).val()); |
1624 |
var found_holds = $("select[name='rank-request'][disabled='disabled']").length ; //Count how many are found |
1624 |
var found_holds = $("select[name='rank-request'][disabled='disabled']").length ; //Count how many are found |
1625 |
if( !isNaN(value) ) { //If moved to 'del' |
1625 |
if( !isNaN(value) ) { //If moved to 'del' |
1626 |
var after = row.parent().find("tr:nth-child("+(value+1+found_holds )+")"); //Go to the row 1 after the new value (and skip found holds) |
1626 |
var after = row.parent().find(`tr:nth-child(${value+found_holds})`); //Go to the row 1 after the new value (and skip found holds) |
1627 |
if (prev_rank_request > value) { |
1627 |
if (prev_rank_request > value) { |
1628 |
row.insertBefore(after); |
1628 |
row.insertBefore(after); |
1629 |
} else { |
1629 |
} else { |
1630 |
- |
|
|