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:
parent
3804b17745
commit
d69247b381
|
|
@ -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 %]&borrower_debarment_id=[% d.borrower_debarment_id %]&action=del">
|
||||
<a class="remove_restriction" href="/cgi-bin/koha/members/mod_debarment.pl?borrowernumber=[% borrowernumber %]&borrower_debarment_id=[% d.borrower_debarment_id %]&action=del">
|
||||
Remove
|
||||
</a>
|
||||
</td>
|
||||
|
|
|
|||
Loading…
Reference in New Issue