Bug 26983: Fix [un]select all links in inventory
The select/unselect all links took into account only the items displayed
when the page was loaded (so 20).
Test plan:
1. Go to Tools-> Inventory-> Do a Search to produce more than 20 results
2. Select 50, 100 or All entries to show
3. click on Select All
=> All items must be selected, not only the first 20
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit e15446af12)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
8a8b5f1a71
commit
1ca4cbf076
|
|
@ -397,16 +397,15 @@
|
|||
return false;
|
||||
});
|
||||
|
||||
var checkboxes = $("#inventoryt input:checkbox");
|
||||
$(".checkall").click(function(e){
|
||||
e.preventDefault();
|
||||
checkboxes.each(function(){
|
||||
$("#inventoryt input:checkbox").each(function(){
|
||||
$(this).prop("checked", true);
|
||||
});
|
||||
});
|
||||
$(".clearall").click(function(e){
|
||||
e.preventDefault();
|
||||
checkboxes.each(function(){
|
||||
$("#inventoryt input:checkbox").each(function(){
|
||||
$(this).prop("checked", false);
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue