From 7b2c5727e40dc69f096e81be7c87978ea8acb5db Mon Sep 17 00:00:00 2001 From: Nathan Swain Date: Tue, 7 Jun 2022 08:39:08 -0600 Subject: [PATCH] Remove emtpy modal calls. modal('show') should work for all versions of bootstrap. --- mfa/templates/MFA.html | 1 - mfa/templates/TrustedDevices/start.html | 4 +--- mfa/templates/mfa_check.html | 1 - 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/mfa/templates/MFA.html b/mfa/templates/MFA.html index 996d3ee..4940ad8 100644 --- a/mfa/templates/MFA.html +++ b/mfa/templates/MFA.html @@ -19,7 +19,6 @@ $("#modal-body").html("Are you sure you want to delete '"+name+"'? you may lose access to your system if this your only 2FA."); $("#actionBtn").remove() $("#modal-footer").prepend("") - $("#popUpModal").modal() $("#popUpModal").modal('show') } diff --git a/mfa/templates/TrustedDevices/start.html b/mfa/templates/TrustedDevices/start.html index ab45dc6..dd208b3 100644 --- a/mfa/templates/TrustedDevices/start.html +++ b/mfa/templates/TrustedDevices/start.html @@ -15,7 +15,6 @@ function sendEmail() { $("#modal-title").html("Send Link") $("#modal-body").html("Sending Email, Please wait...."); - $("#popUpModal").modal(); $("#popUpModal").modal('show'); $.ajax({ "url":"{% url 'td_sendemail' %}", @@ -61,8 +60,7 @@ $("#actionBtn").remove(); $("#modal-footer").prepend("") $("#modal-body").html(data) - $("#popUpModal").modal() - $("#popUpModal").modal('show') + $("#popUpModal").modal('show'); } } }) diff --git a/mfa/templates/mfa_check.html b/mfa/templates/mfa_check.html index 3922fdf..47f550b 100644 --- a/mfa/templates/mfa_check.html +++ b/mfa/templates/mfa_check.html @@ -24,7 +24,6 @@ { $("#modal-title").html("Recheck Indentity") $("#modal-body").html(data["html"]) - $("#popUpModal").modal() $("#popUpModal").modal('show') }