Bugzilla – Attachment 114951 Details for
Bug 26983
Selecting ALL Items in Inventory- only selects 20
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26983: Fix [un]select all links in inventory
Bug-26983-Fix-unselect-all-links-in-inventory.patch (text/plain), 1.77 KB, created by
Julian Maurice
on 2021-01-08 10:41:42 UTC
(
hide
)
Description:
Bug 26983: Fix [un]select all links in inventory
Filename:
MIME Type:
Creator:
Julian Maurice
Created:
2021-01-08 10:41:42 UTC
Size:
1.77 KB
patch
obsolete
>From 0f10fd78f4a046aabddfe4b4647a74f5b87c59f9 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 2 Dec 2020 10:26:25 +0100 >Subject: [PATCH] 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> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt >index e9cdad3b3e..a6fe072d2d 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt >@@ -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); > }); > }); >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 26983
:
114087
|
114325
| 114951