From 34f0db4fe809c5af6bac2e0856b412052697e1a2 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 22 Oct 2019 11:51:54 +0200 Subject: [PATCH] Bug 23594: Fix [un]checkall links MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sponsored-by: BULAC - http://www.bulac.fr/ Signed-off-by: Séverine QUEUNE --- koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt | 8 +++++--- 1 file changed, 5 insertions(+), 3 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 075b7c62a9..11a5cbfe2d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt @@ -498,7 +498,7 @@
[% IF ( suggestion.suggestions_loop ) %] -

Check all | Uncheck all

+

Check all | Uncheck all

@@ -856,11 +856,13 @@ [% END %] $(".checkall").click(function(e){ - $(this).parent(form).checkCheckboxes(); + e.preventDefault(); + $(this).parents('form').checkCheckboxes(); return false; }); $(".uncheckall").click(function(e){ - $(this).parent(form).unCheckCheckboxes(); + e.preventDefault(); + $(this).parents('form').unCheckCheckboxes(); return false; }); $(".other_reason").hide(); -- 2.11.0