diff options
author | William Desportes <williamdes@wdes.fr> | 2019-11-22 02:26:45 +0300 |
---|---|---|
committer | William Desportes <williamdes@wdes.fr> | 2019-11-22 02:30:19 +0300 |
commit | 70d5ba995c47ac14b5a8fd3866c690f5450f057f (patch) | |
tree | 38da036cd687844abf90ea4ad54107327dd4a118 /js | |
parent | 51acbf53564d9b52e78509a5688ec2b68976b5f7 (diff) | |
parent | 988ae066a8ca8fea45682b92e0e5f9f600df8c11 (diff) |
Merge #15579 - Fix checkbox selection
Pull-request: #15579
Fixes: #15578
Fixes: #15327
Signed-off-by: William Desportes <williamdes@wdes.fr>
Diffstat (limited to 'js')
-rw-r--r-- | js/functions.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/functions.js b/js/functions.js index 50c276afb4..88263b60ff 100644 --- a/js/functions.js +++ b/js/functions.js @@ -1046,7 +1046,7 @@ AJAX.registerOnload('functions.js', function () { last_click_checked = checked; // remember the last clicked row - last_clicked_row = last_click_checked ? $table.find('tr:not(.noclick)').index($tr) : -1; + last_clicked_row = last_click_checked ? $table.find('tbody tr:not(.noclick)').index($tr) : -1; last_shift_clicked_row = -1; } else { // handle the shift click @@ -1072,7 +1072,7 @@ AJAX.registerOnload('functions.js', function () { } // handle new shift click - var curr_row = $table.find('tr:not(.noclick)').index($tr); + var curr_row = $table.find('tbody tr:not(.noclick)').index($tr); if (curr_row >= last_clicked_row) { start = last_clicked_row; end = curr_row; @@ -1081,7 +1081,7 @@ AJAX.registerOnload('functions.js', function () { end = last_clicked_row; } $tr.parent().find('tr:not(.noclick)') - .slice(start, end) + .slice(start, end + 1) .addClass('marked') .find(':checkbox') .prop('checked', true) |