Bug 23594: Fix [un]checkall links

Sponsored-by: BULAC - http://www.bulac.fr/
Signed-off-by: Séverine QUEUNE <severine.queune@bulac.fr>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Jonathan Druart 2019-10-22 11:51:54 +02:00 committed by Martin Renvoize
parent 4494e8ba6c
commit 4b5570c6aa
Signed by: martin.renvoize
GPG key ID: 422B469130441A0F

View file

@ -498,7 +498,7 @@
<form class="update_suggestions" name="f" method="post" action="/cgi-bin/koha/suggestion/suggestion.pl#tab_[% loop.count %]">
[% IF ( suggestion.suggestions_loop ) %]
<p><a class="checkall" href="#">Check all</a> | <a name="uncheckall" href="#">Uncheck all</a></p>
<p><a class="checkall" href="#">Check all</a> | <a class="uncheckall" href="#">Uncheck all</a></p>
<table id="table_[% loop.count %]" class="sorted">
<thead>
<tr>
@ -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();