mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
There was a bug with select-all where some bits didn't quite work
This commit is contained in:
parent
88291cadc1
commit
75a757d6f5
|
@ -129,8 +129,11 @@
|
||||||
var tableId = $(this).data('id-table');
|
var tableId = $(this).data('id-table');
|
||||||
|
|
||||||
for (var i in rowsAfter) {
|
for (var i in rowsAfter) {
|
||||||
|
// 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 + '">');
|
$(buttonName).after('<input id="' + tableId + '_checkbox_' + rowsAfter[i].id + '" type="hidden" name="ids[]" value="' + rowsAfter[i].id + '">');
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue