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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt (-4 / +2 lines)
Lines 750-756 Link Here
750
                e.preventDefault();
750
                e.preventDefault();
751
                var hold_title = $(this).data("title");
751
                var hold_title = $(this).data("title");
752
                var reserve_id = $(this).data("reserve_id");
752
                var reserve_id = $(this).data("reserve_id");
753
                var body = "<p><strong>" + hold_title + "</strong></p>";
754
                confirmModal( hold_title, _("Are you sure you want to cancel this hold?"), _("Yes, cancel hold"), _("No, do not cancel hold"), function( result ){
753
                confirmModal( hold_title, _("Are you sure you want to cancel this hold?"), _("Yes, cancel hold"), _("No, do not cancel hold"), function( result ){
755
                        if( result ){
754
                        if( result ){
756
                            $("#delete_hold_" + reserve_id ).submit();
755
                            $("#delete_hold_" + reserve_id ).submit();
Lines 761-770 Link Here
761
760
762
            $(".btn-delete-article-request").on("click", function(e){
761
            $(".btn-delete-article-request").on("click", function(e){
763
                e.preventDefault();
762
                e.preventDefault();
764
                var hold_title = $(this).data("title");
763
                var article_request = $(this).data("title");
765
                var article_request_id = $(this).data("article-request_id");
764
                var article_request_id = $(this).data("article-request_id");
766
                var body = "<p><strong>" + hold_title + "</strong></p>";
765
                confirmModal( article_request, _("Are you sure you want to cancel this article request?"), _("Yes, cancel article request"), _("No, do not cancel article request"), function( result ){
767
                confirmModal( hold_title, _("Are you sure you want to cancel this article request?"), _("Yes, cancel article request"), _("No, do not cancel article request"), function( result ){
768
                        if( result ){
766
                        if( result ){
769
                            $("#delete_article_request_" + article_request_id ).submit();
767
                            $("#delete_article_request_" + article_request_id ).submit();
770
                        }
768
                        }
(-)a/koha-tmpl/opac-tmpl/bootstrap/js/global.js (-2 / +1 lines)
Lines 82-88 function confirmModal(message, title, yes_label, no_label, callback) { Link Here
82
    }
82
    }
83
83
84
    $("#bootstrap-confirm-box-modal .modal-header h4").text( title || "" );
84
    $("#bootstrap-confirm-box-modal .modal-header h4").text( title || "" );
85
    $("#bootstrap-confirm-box-modal .modal-body p").text( message || "" );
85
    $("#bootstrap-confirm-box-modal .modal-body").html( message || "" );
86
    $("#bootstrap-confirm-box-modal-submit").text( yes_label || 'Confirm' );
86
    $("#bootstrap-confirm-box-modal-submit").text( yes_label || 'Confirm' );
87
    $("#bootstrap-confirm-box-modal-cancel").text( no_label || 'Cancel' );
87
    $("#bootstrap-confirm-box-modal-cancel").text( no_label || 'Cancel' );
88
    $("#bootstrap-confirm-box-modal").modal('show');
88
    $("#bootstrap-confirm-box-modal").modal('show');
89
- 

Return to bug 24341