Remove emtpy modal calls.

modal('show') should work for all versions of bootstrap.
This commit is contained in:
Nathan Swain
2022-06-07 08:39:08 -06:00
parent 7eecd759f7
commit 7b2c5727e4
3 changed files with 1 additions and 5 deletions

View File

@@ -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."); $("#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() $("#actionBtn").remove()
$("#modal-footer").prepend("<button id='actionBtn' class='btn btn-danger' onclick='confirmDel("+id+")'>Confirm Deletion</button>") $("#modal-footer").prepend("<button id='actionBtn' class='btn btn-danger' onclick='confirmDel("+id+")'>Confirm Deletion</button>")
$("#popUpModal").modal()
$("#popUpModal").modal('show') $("#popUpModal").modal('show')
} }

View File

@@ -15,7 +15,6 @@
function sendEmail() { function sendEmail() {
$("#modal-title").html("Send Link") $("#modal-title").html("Send Link")
$("#modal-body").html("Sending Email, Please wait...."); $("#modal-body").html("Sending Email, Please wait....");
$("#popUpModal").modal();
$("#popUpModal").modal('show'); $("#popUpModal").modal('show');
$.ajax({ $.ajax({
"url":"{% url 'td_sendemail' %}", "url":"{% url 'td_sendemail' %}",
@@ -61,8 +60,7 @@
$("#actionBtn").remove(); $("#actionBtn").remove();
$("#modal-footer").prepend("<button id='actionBtn' class='btn btn-success' onclick='checkMFA()'>Trust Device</button>") $("#modal-footer").prepend("<button id='actionBtn' class='btn btn-success' onclick='checkMFA()'>Trust Device</button>")
$("#modal-body").html(data) $("#modal-body").html(data)
$("#popUpModal").modal() $("#popUpModal").modal('show');
$("#popUpModal").modal('show')
} }
} }
}) })

View File

@@ -24,7 +24,6 @@
{ {
$("#modal-title").html("Recheck Indentity") $("#modal-title").html("Recheck Indentity")
$("#modal-body").html(data["html"]) $("#modal-body").html(data["html"])
$("#popUpModal").modal()
$("#popUpModal").modal('show') $("#popUpModal").modal('show')
} }