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
                                                    <i>"[% message.message | html %]"</i>
830
                                                    <i>"[% message.message | html %]"</i>
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 1056-1064 Link Here
1056
        [% FOREACH b IN relatives_borrowernumbers %]
1056
        [% FOREACH b IN relatives_borrowernumbers %]
1057
            relatives_borrowernumbers.push("[% b | html %]");
1057
            relatives_borrowernumbers.push("[% b | html %]");
1058
        [% END %]
1058
        [% END %]
1059
1060
        var MSG_EXPORT_SELECT_CHECKOUTS = _("You must select checkout(s) to export");
1061
        var MSG_CONFIRM_DELETE_MESSAGE = _("Are you sure you want to delete this message? This cannot be undone.");
1062
        var SuspendHoldsIntranet = [% ( Koha.Preference('SuspendHoldsIntranet') ) ? 1 : 0 | html %];
1059
        var SuspendHoldsIntranet = [% ( Koha.Preference('SuspendHoldsIntranet') ) ? 1 : 0 | html %];
1063
    </script>
1060
    </script>
1064
    [% Asset.js("js/pages/circulation.js") | $raw %]
1061
    [% 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
                                                <i>"[% patron_message.message | html %]"</i>
98
                                                <i>"[% patron_message.message | html %]"</i>
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 920-928 Link Here
920
        [% FOREACH b IN relatives_borrowernumbers %]
920
        [% FOREACH b IN relatives_borrowernumbers %]
921
            relatives_borrowernumbers.push("[% b | html %]");
921
            relatives_borrowernumbers.push("[% b | html %]");
922
        [% END %]
922
        [% END %]
923
924
        var MSG_EXPORT_SELECT_CHECKOUTS = _("You must select checkout(s) to export");
925
        var MSG_CONFIRM_DELETE_MESSAGE = _("Are you sure you want to delete this message? This cannot be undone.");
926
        var SuspendHoldsIntranet = [% ( Koha.Preference('SuspendHoldsIntranet') ) ? 1 : 0 | html %];
923
        var SuspendHoldsIntranet = [% ( Koha.Preference('SuspendHoldsIntranet') ) ? 1 : 0 | html %];
927
    </script>
924
    </script>
928
    [% Asset.js("js/pages/circulation.js") | $raw %]
925
    [% 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