Merge pull request #12266 from uberbrady/fix-select-all-bug
Fixed: There was a bug with BS tables' select-all which showed an incorrect list of elements
This commit is contained in:
commit
128c21a905
1 changed files with 4 additions and 1 deletions
|
@ -129,7 +129,10 @@
|
||||||
var tableId = $(this).data('id-table');
|
var tableId = $(this).data('id-table');
|
||||||
|
|
||||||
for (var i in rowsAfter) {
|
for (var i in rowsAfter) {
|
||||||
$(buttonName).after('<input id="' + tableId + '_checkbox_' + rowsAfter[i].id + '" type="hidden" name="ids[]" value="' + rowsAfter[i].id + '">');
|
// Do not select things that were already selected
|
||||||
|
if($('#'+ tableId + '_checkbox_' + rowsAfter[i].id).length == 0) {
|
||||||
|
$(buttonName).after('<input id="' + tableId + '_checkbox_' + rowsAfter[i].id + '" type="hidden" name="ids[]" value="' + rowsAfter[i].id + '">');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue