diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt index 710080c86d..aeab80c8ce 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt @@ -952,6 +952,7 @@ $(function() { }); } confirmModal( message, title, yes_label, no_label, function( result ){ + $("#bootstrap-confirm-box-modal").remove(); if( result ){ if( biblionumber ){ $("#shelf_delete_biblionumber").val( biblionumber ); @@ -1004,6 +1005,7 @@ $(function() { message += "

" + _("This list is shared. Other users will lose access to it.") + "

"; } confirmModal( message, _("Are you sure you want to delete this list?"), _("Yes, delete"), _("No, do not delete"), function( result ){ + $("#bootstrap-confirm-box-modal").remove(); if( result ){ $("#deleteshelf" + shelf_number ).submit(); } @@ -1016,6 +1018,7 @@ $(function() { var shelf_name = $(this).data("shelfname"); var shelf_number = $(this).data("shelfnumber"); 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 ){ + $("#bootstrap-confirm-box-modal").remove(); if( result ){ $("#unshare" + shelf_number ).submit(); } diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt index 7c5feb8d84..2e29abfd9f 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt @@ -640,6 +640,7 @@ }); } confirmModal( message, title, yes_label, no_label, function( result ){ + $("#bootstrap-confirm-box-modal").remove(); if( result ){ $("#delete_suggestions").submit(); } diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-tags.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-tags.tt index fe7f646f31..309c7ae955 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-tags.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-tags.tt @@ -254,6 +254,7 @@ }); } confirmModal( message, title, yes_label, no_label, function( result ){ + $("#bootstrap-confirm-box-modal").remove(); if( result ){ $("#deletetags").submit(); } diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt index db9e2822fe..19882d6a92 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt @@ -607,6 +607,7 @@ [% IF Koha.Preference('SelfCheckReceiptPrompt') %] var confirmStart = Date.now(); confirmModal("", _("Would you like to print a receipt?"), _("Print receipt and end session"), _("End session"), function(result) { + $("#bootstrap-confirm-box-modal").remove(); if ( result && (Date.now() - confirmStart) < [% SelfCheckTimeout | html %] ) { var win = window.open("/cgi-bin/koha/sco/printslip.pl?print=qslip"); location.href = '/cgi-bin/koha/sco/sco-main.pl?op=logout';