Bugzilla – Attachment 110125 Details for
Bug 26151
Remove the use of jquery.checkboxes plugin from suggestions management page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26151: Remove the use of jquery.checkboxes plugin from suggestions management page
Bug-26151-Remove-the-use-of-jquerycheckboxes-plugi.patch (text/plain), 2.34 KB, created by
Katrin Fischer
on 2020-09-15 20:11:57 UTC
(
hide
)
Description:
Bug 26151: Remove the use of jquery.checkboxes plugin from suggestions management page
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2020-09-15 20:11:57 UTC
Size:
2.34 KB
patch
obsolete
>From a0433335b0f79f2c3c3ed5d8464812590d72378c Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Wed, 5 Aug 2020 17:27:58 +0000 >Subject: [PATCH] Bug 26151: Remove the use of jquery.checkboxes plugin from > suggestions management page > >This patch removes the use of the jquery.checkboxes plugin from the >suggestions management page and replaces it with custom JS. > >To test, apply the patch and go to Acquisitions -> Suggestions > >Under each tab ("Accepted," "Pending," etc.), test that the "Check all" >and "Uncheck all" controls work correctly and only affect the table on >that tab. > >Signed-off-by: Brandon J <brandon.jimenez@inLibro.com> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > .../intranet-tmpl/prog/en/modules/suggestion/suggestion.tt | 12 ++++++------ > 1 file changed, 6 insertions(+), 6 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt >index ede593e118..a06d1cd0f1 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt >@@ -1013,8 +1013,6 @@ > [% IF op == 'else' %] > [% INCLUDE 'datatables.inc' %] > [% INCLUDE 'columns_settings.inc' %] >- [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %] >- > <script> > $(document).ready(function() { > $('#suggestiontabs').tabs(); >@@ -1039,13 +1037,15 @@ > > $(".checkall").click(function(e){ > e.preventDefault(); >- $(this).parents('form').checkCheckboxes(); >- return false; >+ $(this).parents('form').find("input:checkbox").each(function(){ >+ $(this).prop("checked", true); >+ }); > }); > $(".uncheckall").click(function(e){ > e.preventDefault(); >- $(this).parents('form').unCheckCheckboxes(); >- return false; >+ $(this).parents('form').find("input:checkbox").each(function(){ >+ $(this).prop("checked", false); >+ }); > }); > $(".other_reason").hide(); > $("select[name='reason']").change(function(){ >-- >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 26151
:
107854
|
110112
| 110125