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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt (-4 / +1 lines)
Lines 830-836 Link Here
830
                                                    <em>"[% message.message | html %]"</em>
830
                                                    <em>"[% message.message | html %]"</em>
831
                                                </span>
831
                                                </span>
832
                                                [% IF message.branchcode == branch OR Koha.Preference('AllowAllMessageDeletion') %]
832
                                                [% IF message.branchcode == branch OR Koha.Preference('AllowAllMessageDeletion') %]
833
                                                    <a class="btn btn-link" href="/cgi-bin/koha/circ/del_message.pl?message_id=[% message.message_id | html %]&amp;borrowernumber=[% message.borrowernumber | html %]" onclick="return confirm(MSG_CONFIRM_DELETE_MESSAGE);"><i class="fa fa-trash"></i> Delete</a>
833
                                                    <a class="btn btn-link" href="/cgi-bin/koha/circ/del_message.pl?message_id=[% message.message_id | html %]&amp;borrowernumber=[% message.borrowernumber | html %]" onclick="return confirm(_('Are you sure you want to delete this message? This cannot be undone.'));"><i class="fa fa-trash"></i> Delete</a>
834
                                                [% END %]
834
                                                [% END %]
835
                                            </li>
835
                                            </li>
836
                                        [% END %]
836
                                        [% END %]
Lines 1072-1080 Link Here
1072
        [% FOREACH b IN relatives_borrowernumbers %]
1072
        [% FOREACH b IN relatives_borrowernumbers %]
1073
            relatives_borrowernumbers.push("[% b | html %]");
1073
            relatives_borrowernumbers.push("[% b | html %]");
1074
        [% END %]
1074
        [% END %]
1075
1076
        var MSG_EXPORT_SELECT_CHECKOUTS = _("You must select checkout(s) to export");
1077
        var MSG_CONFIRM_DELETE_MESSAGE = _("Are you sure you want to delete this message? This cannot be undone.");
1078
        var SuspendHoldsIntranet = [% ( Koha.Preference('SuspendHoldsIntranet') ) ? 1 : 0 | html %];
1075
        var SuspendHoldsIntranet = [% ( Koha.Preference('SuspendHoldsIntranet') ) ? 1 : 0 | html %];
1079
    </script>
1076
    </script>
1080
    [% Asset.js("js/pages/circulation.js") | $raw %]
1077
    [% Asset.js("js/pages/circulation.js") | $raw %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt (-4 / +1 lines)
Lines 98-104 Link Here
98
                                                <em>"[% patron_message.message | html %]"</em>
98
                                                <em>"[% patron_message.message | html %]"</em>
99
                                            </span>
99
                                            </span>
100
                                            [% IF patron_message.branchcode == patron.branchcode OR Koha.Preference('AllowAllMessageDeletion') %]
100
                                            [% IF patron_message.branchcode == patron.branchcode OR Koha.Preference('AllowAllMessageDeletion') %]
101
                                                <a class="btn btn-link" href="/cgi-bin/koha/circ/del_message.pl?message_id=[% patron_message.message_id | html %]&amp;borrowernumber=[% patron_message.borrowernumber | html %]&amp;from=moremember" onclick="return confirm(MSG_CONFIRM_DELETE_MESSAGE);"><i class="fa fa-trash"></i> Delete</a>
101
                                                <a class="btn btn-link" href="/cgi-bin/koha/circ/del_message.pl?message_id=[% patron_message.message_id | html %]&amp;borrowernumber=[% patron_message.borrowernumber | html %]&amp;from=moremember" onclick="return confirm(_('Are you sure you want to delete this message? This cannot be undone.'));"><i class="fa fa-trash"></i> Delete</a>
102
                                            [% END %]
102
                                            [% END %]
103
                                        </li>
103
                                        </li>
104
                                    [% END %]
104
                                    [% END %]
Lines 938-946 Link Here
938
        [% FOREACH b IN relatives_borrowernumbers %]
938
        [% FOREACH b IN relatives_borrowernumbers %]
939
            relatives_borrowernumbers.push("[% b | html %]");
939
            relatives_borrowernumbers.push("[% b | html %]");
940
        [% END %]
940
        [% END %]
941
942
        var MSG_EXPORT_SELECT_CHECKOUTS = _("You must select checkout(s) to export");
943
        var MSG_CONFIRM_DELETE_MESSAGE = _("Are you sure you want to delete this message? This cannot be undone.");
944
        var SuspendHoldsIntranet = [% ( Koha.Preference('SuspendHoldsIntranet') ) ? 1 : 0 | html %];
941
        var SuspendHoldsIntranet = [% ( Koha.Preference('SuspendHoldsIntranet') ) ? 1 : 0 | html %];
945
    </script>
942
    </script>
946
    [% Asset.js("js/pages/circulation.js") | $raw %]
943
    [% Asset.js("js/pages/circulation.js") | $raw %]
(-)a/koha-tmpl/intranet-tmpl/prog/js/pages/circulation.js (-3 / +2 lines)
Lines 87-93 $(document).ready(function() { Link Here
87
87
88
    // Debarments
88
    // Debarments
89
    $("div#reldebarments .remove_restriction").on("click",function(){
89
    $("div#reldebarments .remove_restriction").on("click",function(){
90
        return confirm(_("Remove restriction?"));
90
        return confirm( __("Remove restriction?") );
91
    });
91
    });
92
    var mrform = $("#manual_restriction_form");
92
    var mrform = $("#manual_restriction_form");
93
    var mrlink = $("#add_manual_restriction");
93
    var mrlink = $("#add_manual_restriction");
Lines 113-119 $(document).ready(function() { Link Here
113
113
114
function export_checkouts(format) {
114
function export_checkouts(format) {
115
    if ($("input:checkbox[name='biblionumbers']:checked").length < 1){
115
    if ($("input:checkbox[name='biblionumbers']:checked").length < 1){
116
        alert(MSG_EXPORT_SELECT_CHECKOUTS);
116
        alert( __("You must select checkout(s) to export") );
117
        return;
117
        return;
118
    }
118
    }
119
119
120
- 

Return to bug 26243