From dcdb047b03ecd43f57070f11c63d5fe6cea07b4d Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Fri, 25 Aug 2023 14:14:35 +0000 Subject: [PATCH] Bug 34616: Add native bootstrap behaviour to default server dialog Test plan: Create a new SMTP server Tick the 'default server' checkbox Verify it now has a backdrop, closes if u click the backdrop or press 'esc' The Yes and No buttons are now styled properly Signed-off-by: Owen Leonard Signed-off-by: Jonathan Druart Signed-off-by: Tomas Cohen Arazi (cherry picked from commit b9d3997063344dcd04f6fac4810a9d3576c9e4c2) Signed-off-by: Fridolin Somers --- .../prog/en/modules/admin/smtp_servers.tt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smtp_servers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smtp_servers.tt index 206f53950a..cc1b47f0c7 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smtp_servers.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smtp_servers.tt @@ -313,8 +313,8 @@
Are you sure you want to change the default SMTP server?
@@ -452,14 +452,14 @@ }); $('#smtp_default').on( "click", function () { - $("#default_confirm_modal").show(); + $("#default_confirm_modal").modal('show'); }); $('.default_confirm_modal_yes').on( "click", function () { - $("#default_confirm_modal").hide(); + $("#default_confirm_modal").modal('hide'); }); $('.default_confirm_modal_no').on( "click", function () { $("#smtp_default").prop('checked', !$("#smtp_default").prop('checked') ); - $("#default_confirm_modal").hide(); + $("#default_confirm_modal").modal('hide'); }); $("#delete_confirm_modal_button").on( "click", function () { -- 2.39.5