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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt (-3 lines)
Lines 951-957 $(function() { Link Here
951
                    });
951
                    });
952
                }
952
                }
953
                confirmModal( message, title, yes_label, no_label, function( result ){
953
                confirmModal( message, title, yes_label, no_label, function( result ){
954
                    $("#bootstrap-confirm-box-modal").remove();
955
                    if( result ){
954
                    if( result ){
956
                        if( biblionumber ){
955
                        if( biblionumber ){
957
                            $("#shelf_delete_biblionumber").val( biblionumber );
956
                            $("#shelf_delete_biblionumber").val( biblionumber );
Lines 1004-1010 $(function() { Link Here
1004
            message += "<p>" + _("This list is shared. Other users will lose access to it.") + "</p>";
1003
            message += "<p>" + _("This list is shared. Other users will lose access to it.") + "</p>";
1005
        }
1004
        }
1006
        confirmModal( message, _("Are you sure you want to delete this list?"), _("Yes, delete"), _("No, do not delete"), function( result ){
1005
        confirmModal( message, _("Are you sure you want to delete this list?"), _("Yes, delete"), _("No, do not delete"), function( result ){
1007
                $("#bootstrap-confirm-box-modal").remove();
1008
                if( result ){
1006
                if( result ){
1009
                    $("#deleteshelf" + shelf_number ).submit();
1007
                    $("#deleteshelf" + shelf_number ).submit();
1010
                }
1008
                }
Lines 1017-1023 $(function() { Link Here
1017
        var shelf_name = $(this).data("shelfname");
1015
        var shelf_name = $(this).data("shelfname");
1018
        var shelf_number = $(this).data("shelfnumber");
1016
        var shelf_number = $(this).data("shelfnumber");
1019
        confirmModal( shelf_name, _("Are you sure you want to remove sharing? You will no longer have access to the list."), _("Yes, remove sharing"), _("No, do not remove sharing"), function( result ){
1017
        confirmModal( shelf_name, _("Are you sure you want to remove sharing? You will no longer have access to the list."), _("Yes, remove sharing"), _("No, do not remove sharing"), function( result ){
1020
                $("#bootstrap-confirm-box-modal").remove();
1021
                if( result ){
1018
                if( result ){
1022
                    $("#unshare" + shelf_number ).submit();
1019
                    $("#unshare" + shelf_number ).submit();
1023
                }
1020
                }
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt (-1 lines)
Lines 638-644 Link Here
638
                    });
638
                    });
639
                }
639
                }
640
                confirmModal( message, title, yes_label, no_label, function( result ){
640
                confirmModal( message, title, yes_label, no_label, function( result ){
641
                    $("#bootstrap-confirm-box-modal").remove();
642
                    if( result ){
641
                    if( result ){
643
                        $("#delete_suggestions").submit();
642
                        $("#delete_suggestions").submit();
644
                    }
643
                    }
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-tags.tt (-1 lines)
Lines 256-262 Link Here
256
                    });
256
                    });
257
                }
257
                }
258
                confirmModal( message, title, yes_label, no_label, function( result ){
258
                confirmModal( message, title, yes_label, no_label, function( result ){
259
                    $("#bootstrap-confirm-box-modal").remove();
260
                    if( result ){
259
                    if( result ){
261
                        $("#deletetags").submit();
260
                        $("#deletetags").submit();
262
                    }
261
                    }
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt (-5 lines)
Lines 1119-1125 Link Here
1119
                var hold_title = $(this).data("title");
1119
                var hold_title = $(this).data("title");
1120
                var reserve_id = $(this).data("reserve_id");
1120
                var reserve_id = $(this).data("reserve_id");
1121
                confirmModal( hold_title, _("Are you sure you want to cancel this hold?"), _("Yes, cancel hold"), _("No, do not cancel hold"), function( result ){
1121
                confirmModal( hold_title, _("Are you sure you want to cancel this hold?"), _("Yes, cancel hold"), _("No, do not cancel hold"), function( result ){
1122
                        $("#bootstrap-confirm-box-modal").remove()
1123
                        if( result ){
1122
                        if( result ){
1124
                            $("#delete_hold_" + reserve_id ).submit();
1123
                            $("#delete_hold_" + reserve_id ).submit();
1125
                        }
1124
                        }
Lines 1132-1138 Link Here
1132
                var hold_title = $(this).data("title");
1131
                var hold_title = $(this).data("title");
1133
                var reserve_id = $(this).data("reserve_id");
1132
                var reserve_id = $(this).data("reserve_id");
1134
                confirmModal( hold_title, _("Are you sure you want to request cancelling this hold?"), _("Yes"), _("No"), function( result ){
1133
                confirmModal( hold_title, _("Are you sure you want to request cancelling this hold?"), _("Yes"), _("No"), function( result ){
1135
                        $("#bootstrap-confirm-box-modal").remove()
1136
                        if( result ){
1134
                        if( result ){
1137
                            $("#req_cancel_hold_" + reserve_id ).submit();
1135
                            $("#req_cancel_hold_" + reserve_id ).submit();
1138
                        }
1136
                        }
Lines 1146-1152 Link Here
1146
                var article_request_id = $(this).data("article-request_id");
1144
                var article_request_id = $(this).data("article-request_id");
1147
                (function(row){
1145
                (function(row){
1148
                    var doCancel = function( result ){
1146
                    var doCancel = function( result ){
1149
                        $("#bootstrap-confirm-box-modal").remove();
1150
                        if( result ){
1147
                        if( result ){
1151
                            $.ajax({
1148
                            $.ajax({
1152
                                type: "DELETE",
1149
                                type: "DELETE",
Lines 1197-1203 Link Here
1197
                var title = _("Are you sure you want to suspend all holds?");
1194
                var title = _("Are you sure you want to suspend all holds?");
1198
                var body = _("All holds will be suspended.");
1195
                var body = _("All holds will be suspended.");
1199
                confirmModal( body, title, _("Yes, suspend all holds"), "", function( result ){
1196
                confirmModal( body, title, _("Yes, suspend all holds"), "", function( result ){
1200
                        $("#bootstrap-confirm-box-modal").remove()
1201
                        if( result ){
1197
                        if( result ){
1202
                            $("#suspend_all_holds").submit();
1198
                            $("#suspend_all_holds").submit();
1203
                        }
1199
                        }
Lines 1210-1216 Link Here
1210
                var title = _("Are you sure you want to resume all suspended holds?");
1206
                var title = _("Are you sure you want to resume all suspended holds?");
1211
                var body = _("All holds will resume.");
1207
                var body = _("All holds will resume.");
1212
                confirmModal( body, title, _("Yes, resume all holds"), _("No, do not resume holds"), function( result ){
1208
                confirmModal( body, title, _("Yes, resume all holds"), _("No, do not resume holds"), function( result ){
1213
                        $("#bootstrap-confirm-box-modal").remove()
1214
                        if( result ){
1209
                        if( result ){
1215
                            $("#resume_all_holds").submit();
1210
                            $("#resume_all_holds").submit();
1216
                        }
1211
                        }
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt (-1 lines)
Lines 612-618 Link Here
612
                [% IF Koha.Preference('SelfCheckReceiptPrompt') %]
612
                [% IF Koha.Preference('SelfCheckReceiptPrompt') %]
613
                    var confirmStart = Date.now();
613
                    var confirmStart = Date.now();
614
                    confirmModal("", _("Would you like to print a receipt?"), _("Print receipt and end session"), _("End session"), function(result) {
614
                    confirmModal("", _("Would you like to print a receipt?"), _("Print receipt and end session"), _("End session"), function(result) {
615
                        $("#bootstrap-confirm-box-modal").remove();
616
                        if ( result && (Date.now() - confirmStart) < [% SelfCheckTimeout | html %] ) {
615
                        if ( result && (Date.now() - confirmStart) < [% SelfCheckTimeout | html %] ) {
617
                            var win = window.open("/cgi-bin/koha/sco/printslip.pl?print=qslip");
616
                            var win = window.open("/cgi-bin/koha/sco/printslip.pl?print=qslip");
618
                            location.href = '/cgi-bin/koha/sco/sco-main.pl?op=logout';
617
                            location.href = '/cgi-bin/koha/sco/sco-main.pl?op=logout';
(-)a/koha-tmpl/opac-tmpl/bootstrap/js/global.js (-2 / +3 lines)
Lines 133-140 function confirmModal(message, title, yes_label, no_label, callback) { Link Here
133
            return false;
133
            return false;
134
        });
134
        });
135
        $("#bootstrap-confirm-box-modal").on("hide.bs.modal", function () {
135
        $("#bootstrap-confirm-box-modal").on("hide.bs.modal", function () {
136
            if (callback)
136
            if (callback) {
137
                callback($("#bootstrap-confirm-box-modal").data("confirm-yes"));
137
                callback($("#bootstrap-confirm-box-modal").data("confirm-yes"));
138
                $("#bootstrap-confirm-box-modal").remove();
139
            }
138
        });
140
        });
139
    }
141
    }
140
142
141
- 

Return to bug 38268