Lines 1-20
Link Here
|
1 |
/* global MSG_CLOSE_SUBSCRIPTION MSG_REOPEN_SUBSCRIPTION CONFIRM_DELETE_SUBSCRIPTION subscriptionid */ |
1 |
/* global subscriptionid */ |
2 |
|
2 |
|
3 |
function confirm_close() { |
3 |
function confirm_close() { |
4 |
var is_confirmed = confirm( MSG_CLOSE_SUBSCRIPTION ); |
4 |
var is_confirmed = confirm( __("Are you sure you want to close this subscription?") ); |
5 |
if (is_confirmed) { |
5 |
if (is_confirmed) { |
6 |
window.location="subscription-detail.pl?subscriptionid=" + subscriptionid + "&op=close"; |
6 |
window.location="subscription-detail.pl?subscriptionid=" + subscriptionid + "&op=close"; |
7 |
} |
7 |
} |
8 |
} |
8 |
} |
9 |
function confirm_reopen() { |
9 |
function confirm_reopen() { |
10 |
var is_confirmed = confirm( MSG_REOPEN_SUBSCRIPTION ); |
10 |
var is_confirmed = confirm( __("Are you sure you want to reopen this subscription?") ); |
11 |
if (is_confirmed) { |
11 |
if (is_confirmed) { |
12 |
window.location="subscription-detail.pl?subscriptionid=" + subscriptionid + "&op=reopen"; |
12 |
window.location="subscription-detail.pl?subscriptionid=" + subscriptionid + "&op=reopen"; |
13 |
} |
13 |
} |
14 |
} |
14 |
} |
15 |
|
15 |
|
16 |
function confirm_deletion() { |
16 |
function confirm_deletion() { |
17 |
var is_confirmed = confirm( CONFIRM_DELETE_SUBSCRIPTION ); |
17 |
var is_confirmed = confirm( __("Are you sure you want to delete this subscription?") ); |
18 |
if (is_confirmed) { |
18 |
if (is_confirmed) { |
19 |
window.location="subscription-detail.pl?subscriptionid=" + subscriptionid + "&op=del"; |
19 |
window.location="subscription-detail.pl?subscriptionid=" + subscriptionid + "&op=del"; |
20 |
} |
20 |
} |
21 |
- |
|
|