Bugzilla – Attachment 107856 Details for
Bug 26152
Remove the use of jquery.checkboxes plugin from serial collection page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26152: Remove the use of jquery.checkboxes plugin from serial collection page
Bug-26152-Remove-the-use-of-jquerycheckboxes-plugi.patch (text/plain), 2.21 KB, created by
Owen Leonard
on 2020-08-05 18:15:25 UTC
(
hide
)
Description:
Bug 26152: Remove the use of jquery.checkboxes plugin from serial collection page
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2020-08-05 18:15:25 UTC
Size:
2.21 KB
patch
obsolete
>From ddf1537890e9ba2f838f91961ea8640af06b9dfc Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Wed, 5 Aug 2020 17:50:39 +0000 >Subject: [PATCH] Bug 26152: Remove the use of jquery.checkboxes plugin from > serial collection page > >This patch removes the use of the jquery.checkboxes plugin from the >serial collection page and replaces it with custom JS. > >To test, apply the patch and go to Serials. > >- Locate a subscription which has multiple issues. >- View the details for that subscription. >- In the sidebar menu click the "Serial collection" link. >- On the serial collection page test the "Select all" and "Clear all" > links at the top of each table of issues. The controls should work > correctly and only affect the table on that tab. >--- > .../intranet-tmpl/prog/en/modules/serials/serials-collection.tt | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-collection.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-collection.tt >index a67be01377..0770a1124c 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-collection.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-collection.tt >@@ -310,7 +310,6 @@ > var CONFIRM_DELETE_SUBSCRIPTION = _("Are you sure you want to delete this subscription?"); > </script> > [% Asset.js("js/serials-toolbar.js") | $raw %] >- [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %] > > <script> > >@@ -351,13 +350,13 @@ > $(".CheckAll").on("click", function(e){ > e.preventDefault(); > var years = $(this).data("year"); >- $("#subscription-year-" + years ).checkCheckboxes(); >+ $("#subscription-year-" + years + " input:checkbox").prop("checked", true ); > }); > > $(".CheckNone").on("click", function(e){ > e.preventDefault(); > var years = $(this).data("year"); >- $("#subscription-year-" + years ).unCheckCheckboxes(); >+ $("#subscription-year-" + years + " input:checkbox").prop("checked", false ); > }); > > $(".generatenext").on("click", function(e){ >-- >2.11.0
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 26152
:
107856
|
110842
|
111445