View | Details | Raw Unified | Return to bug 26256
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-collection.tt (-3 lines)
Lines 305-313 Link Here
305
    [% INCLUDE 'datatables.inc' %]
305
    [% INCLUDE 'datatables.inc' %]
306
    <script>
306
    <script>
307
        var subscriptionid = "[% subscriptionid | html %]";
307
        var subscriptionid = "[% subscriptionid | html %]";
308
        var MSG_CLOSE_SUBSCRIPTION = _("Are you sure you want to close this subscription?");
309
        var MSG_REOPEN_SUBSCRIPTION = _("Are you sure you want to reopen this subscription?");
310
        var CONFIRM_DELETE_SUBSCRIPTION = _("Are you sure you want to delete this subscription?");
311
    </script>
308
    </script>
312
    [% Asset.js("js/serials-toolbar.js") | $raw %]
309
    [% Asset.js("js/serials-toolbar.js") | $raw %]
313
    [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %]
310
    [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-home.tt (-4 / +1 lines)
Lines 33-43 Link Here
33
33
34
[% MACRO jsinclude BLOCK %]
34
[% MACRO jsinclude BLOCK %]
35
    [% Asset.js("js/serials-toolbar.js") | $raw %]
35
    [% Asset.js("js/serials-toolbar.js") | $raw %]
36
    <script type="text/javascript">
36
    <script>
37
        var subscriptionid = "[% subscriptionid | html %]";
37
        var subscriptionid = "[% subscriptionid | html %]";
38
        var MSG_CLOSE_SUBSCRIPTION = _("Are you sure you want to close this subscription?");
39
        var MSG_REOPEN_SUBSCRIPTION = _("Are you sure you want to reopen this subscription?");
40
        var CONFIRM_DELETE_SUBSCRIPTION = _("Are you sure you want to delete this subscription?");
41
    </script>
38
    </script>
42
[% END %]
39
[% END %]
43
40
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-search.tt (-3 lines)
Lines 410-418 Link Here
410
    [% INCLUDE 'datatables.inc' %]
410
    [% INCLUDE 'datatables.inc' %]
411
    <script>
411
    <script>
412
        var subscriptionid = "[% subscriptionid | html %]";
412
        var subscriptionid = "[% subscriptionid | html %]";
413
        var MSG_CLOSE_SUBSCRIPTION = _("Are you sure you want to close this subscription?");
414
        var MSG_REOPEN_SUBSCRIPTION = _("Are you sure you want to reopen this subscription?");
415
        var CONFIRM_DELETE_SUBSCRIPTION = _("Are you sure you want to delete this subscription?");
416
    </script>
413
    </script>
417
    [% Asset.js("js/serials-toolbar.js") | $raw %]
414
    [% Asset.js("js/serials-toolbar.js") | $raw %]
418
    <script>
415
    <script>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-detail.tt (-3 lines)
Lines 493-501 Link Here
493
[% MACRO jsinclude BLOCK %]
493
[% MACRO jsinclude BLOCK %]
494
    <script>
494
    <script>
495
        var subscriptionid = "[% subscriptionid | html %]";
495
        var subscriptionid = "[% subscriptionid | html %]";
496
        var MSG_CLOSE_SUBSCRIPTION = _("Are you sure you want to close this subscription?");
497
        var MSG_REOPEN_SUBSCRIPTION = _("Are you sure you want to reopen this subscription?");
498
        var CONFIRM_DELETE_SUBSCRIPTION = _("Are you sure you want to delete this subscription?");
499
    </script>
496
    </script>
500
    [% Asset.js("js/serials-toolbar.js") | $raw %]
497
    [% Asset.js("js/serials-toolbar.js") | $raw %]
501
    [% Asset.js("js/mana.js") | $raw %]
498
    [% Asset.js("js/mana.js") | $raw %]
(-)a/koha-tmpl/intranet-tmpl/prog/js/serials-toolbar.js (-5 / +4 lines)
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
- 

Return to bug 26256