Bugzilla – Attachment 114087 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.65 KB, created by
Jonathan Druart
on 2020-12-02 09:28:29 UTC
(
hide
)
Description:
Bug 26983: Fix [un]select all links in inventory
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-12-02 09:28:29 UTC
Size:
1.65 KB
patch
obsolete
>From 31270b5805943d26328c3d1069aa2b8fd819327e 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 >--- > 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