From b9d3997063344dcd04f6fac4810a9d3576c9e4c2 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 --- .../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 11cf1b7230..779434cb1b 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 @@ -317,8 +317,8 @@
Are you sure you want to change the default SMTP server?
@@ -456,14 +456,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