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-956 $(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();
954
                    if( result ){
955
                    if( result ){
955
                        if( biblionumber ){
956
                        if( biblionumber ){
956
                            $("#shelf_delete_biblionumber").val( biblionumber );
957
                            $("#shelf_delete_biblionumber").val( biblionumber );
Lines 1003-1008 $(function() { Link Here
1003
            message += "<p>" + _("This list is shared. Other users will lose access to it.") + "</p>";
1004
            message += "<p>" + _("This list is shared. Other users will lose access to it.") + "</p>";
1004
        }
1005
        }
1005
        confirmModal( message, _("Are you sure you want to delete this list?"), _("Yes, delete"), _("No, do not delete"), function( result ){
1006
        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();
1006
                if( result ){
1008
                if( result ){
1007
                    $("#deleteshelf" + shelf_number ).submit();
1009
                    $("#deleteshelf" + shelf_number ).submit();
1008
                }
1010
                }
Lines 1015-1020 $(function() { Link Here
1015
        var shelf_name = $(this).data("shelfname");
1017
        var shelf_name = $(this).data("shelfname");
1016
        var shelf_number = $(this).data("shelfnumber");
1018
        var shelf_number = $(this).data("shelfnumber");
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 ){
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 ){
1020
                $("#bootstrap-confirm-box-modal").remove();
1018
                if( result ){
1021
                if( result ){
1019
                    $("#unshare" + shelf_number ).submit();
1022
                    $("#unshare" + shelf_number ).submit();
1020
                }
1023
                }
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt (+1 lines)
Lines 638-643 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();
641
                    if( result ){
642
                    if( result ){
642
                        $("#delete_suggestions").submit();
643
                        $("#delete_suggestions").submit();
643
                    }
644
                    }
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-tags.tt (+1 lines)
Lines 255-260 Link Here
255
                    });
255
                    });
256
                }
256
                }
257
                confirmModal( message, title, yes_label, no_label, function( result ){
257
                confirmModal( message, title, yes_label, no_label, function( result ){
258
                    $("#bootstrap-confirm-box-modal").remove();
258
                    if( result ){
259
                    if( result ){
259
                        $("#deletetags").submit();
260
                        $("#deletetags").submit();
260
                    }
261
                    }
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt (-1 / +1 lines)
Lines 612-617 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();
615
                        if ( result && (Date.now() - confirmStart) < [% SelfCheckTimeout | html %] ) {
616
                        if ( result && (Date.now() - confirmStart) < [% SelfCheckTimeout | html %] ) {
616
                            var win = window.open("/cgi-bin/koha/sco/printslip.pl?print=qslip");
617
                            var win = window.open("/cgi-bin/koha/sco/printslip.pl?print=qslip");
617
                            location.href = '/cgi-bin/koha/sco/sco-main.pl?op=logout';
618
                            location.href = '/cgi-bin/koha/sco/sco-main.pl?op=logout';
618
- 

Return to bug 38268