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:
parent
4494e8ba6c
commit
4b5570c6aa
1 changed files with 5 additions and 3 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue