From 8c7b099e364b66f33abe4e14348d9a29c40670dc 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 --- 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 6c4935a48d..bcc182de01 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt @@ -467,7 +467,7 @@
[% IF ( suggestion.suggestions_loop ) %] -

Check all | Uncheck all

+

Check all | Uncheck all

@@ -815,11 +815,13 @@ "sPaginationType": "full" })); $(".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