Bugzilla – Attachment 125024 Details for
Bug 18747
Select All in Add Patron Option in Patron Lists only selects the first 20 entries
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18747: Select All in Add Patron Option in Patron Lists only selects the first 20 entries
Bug-18747-Select-All-in-Add-Patron-Option-in-Patro.patch (text/plain), 2.34 KB, created by
Joonas Kylmälä
on 2021-09-18 10:20:18 UTC
(
hide
)
Description:
Bug 18747: Select All in Add Patron Option in Patron Lists only selects the first 20 entries
Filename:
MIME Type:
Creator:
Joonas Kylmälä
Created:
2021-09-18 10:20:18 UTC
Size:
2.34 KB
patch
obsolete
>From c86b2596f3216067747c78a4c94829509453a748 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Fri, 27 Aug 2021 16:06:02 +0000 >Subject: [PATCH] Bug 18747: Select All in Add Patron Option in Patron Lists > only selects the first 20 entries >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >This patch corrects the JavaScript functions for the "select all" and >"clear all" action when viewing patrons in a list. Before this >correction, checkboxes which were previously in hidden table rows would >not be checked. > >To test, apply the patch and go to Patrons -> Patron Lists > >- View a patron list >- If necessary, add multiple patrons to the list so that the number > exceeds 20. >- Change the number of entries shown by the DataTable: Show [ 50 ] > entries. >- Click "Select all." All visible checkboxes should be checked. >- Click "Clear all." All checkboxes should be unchecked. > >Signed-off-by: Sally <sally.healey@cheshiresharedservices.gov.uk> > >Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi> >--- > .../intranet-tmpl/prog/en/modules/patron_lists/list.tt | 10 ++++------ > 1 file changed, 4 insertions(+), 6 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/list.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/list.tt >index 5c8eb678ba..a9f74cf211 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/list.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/list.tt >@@ -219,17 +219,15 @@ > patron_input_name: 'patrons_to_add' > }); > >- var checkBoxes = $("input[type='checkbox']","#patron-list-table"); >- >- $("#CheckAll").click(function(e){ >+ $("body").on("click", "#CheckAll", function(e){ > e.preventDefault(); >- checkBoxes.each(function(){ >+ $("input[type='checkbox']","#patron-list-table").each(function(){ > $(this).prop("checked",1); > }); > }); >- $("#CheckNone").click(function(e){ >+ $("body").on("click", "#CheckNone", function(e){ > e.preventDefault(); >- checkBoxes.each(function(){ >+ $("input[type='checkbox']","#patron-list-table").each(function(){ > $(this).prop("checked",0); > }); > }); >-- >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 18747
:
124193
|
124328
| 125024