Bug 2720: (follow-up) fix the "remove" links

If there are more than one restriction, the "remove" links don't display
the JavaScript alert.

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
This commit is contained in:
Jonathan Druart 2013-09-24 12:32:16 +02:00 committed by Galen Charlton
parent 3804b17745
commit d69247b381
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
<script type="text/javascript">
//<![CDATA[
$(document).ready(function(e){
$("#remove_restriction").on("click",function(){
$("div#reldebarments .remove_restriction").on("click",function(){
return confirm(_("Remove restriction?"));
});
var mrform = $("#manual_restriction_form");
@ -44,7 +44,7 @@
<td>[% IF d.expiration %] [% d.expiration | $KohaDates %] [% ELSE %] <i>Indefinite</i> [% END %]</td>
[% IF ( CAN_user_borrowers )%]
<td>
<a id="remove_restriction" href="/cgi-bin/koha/members/mod_debarment.pl?borrowernumber=[% borrowernumber %]&amp;borrower_debarment_id=[% d.borrower_debarment_id %]&amp;action=del">
<a class="remove_restriction" href="/cgi-bin/koha/members/mod_debarment.pl?borrowernumber=[% borrowernumber %]&amp;borrower_debarment_id=[% d.borrower_debarment_id %]&amp;action=del">
Remove
</a>
</td>