Lines 1-44
Link Here
|
1 |
[% INCLUDE 'blocking_errors.inc' %] |
1 |
[% INCLUDE 'blocking_errors.inc' %] |
2 |
[% INCLUDE 'mana.inc' %] |
|
|
3 |
<script type="text/javascript"> |
4 |
//<![CDATA[ |
5 |
|
6 |
function confirm_close() { |
7 |
var is_confirmed = confirm(_("Are you sure you want to close this subscription?")); |
8 |
if (is_confirmed) { |
9 |
window.location="subscription-detail.pl?subscriptionid=[% subscriptionid %]&op=close"; |
10 |
} |
11 |
} |
12 |
function confirm_reopen() { |
13 |
var is_confirmed = confirm(_("Are you sure you want to reopen this subscription?")); |
14 |
if (is_confirmed) { |
15 |
window.location="subscription-detail.pl?subscriptionid=[% subscriptionid %]&op=reopen"; |
16 |
} |
17 |
} |
18 |
|
19 |
$(document).ready(function() { |
20 |
$("#deletesub").click(function(){ |
21 |
confirm_deletion(); |
22 |
return false; |
23 |
}); |
24 |
$("#reopen").click(function(){ |
25 |
confirm_reopen(); |
26 |
return false; |
27 |
}); |
28 |
$("#close").click(function(){ |
29 |
confirm_close(); |
30 |
return false; |
31 |
}); |
32 |
$("#renew").click(function(){ |
33 |
popup([% subscriptionid %]); |
34 |
return false; |
35 |
}) |
36 |
$("#mana-subscription-share").click(function() { |
37 |
window.location="subscription-detail.pl?subscriptionid=[% subscriptionid %]&op=share"; |
38 |
}); |
39 |
}); |
40 |
//]]> |
41 |
</script> |
42 |
[% IF subscriptionid and ( CAN_user_serials_edit_subscription || CAN_user_serials_create_subscription || CAN_user_serials_delete_subscription || CAN_user_serials_receive_serials ) %] |
2 |
[% IF subscriptionid and ( CAN_user_serials_edit_subscription || CAN_user_serials_create_subscription || CAN_user_serials_delete_subscription || CAN_user_serials_receive_serials ) %] |
43 |
<div id="toolbar" class="btn-toolbar"> |
3 |
<div id="toolbar" class="btn-toolbar"> |
44 |
[% IF CAN_user_serials_create_subscription %] |
4 |
[% IF CAN_user_serials_create_subscription %] |