From 221b30a9cbcc63391d4de77d63385517efb0a0a9 Mon Sep 17 00:00:00 2001
From: "Bo-Chun Louis Chen(VM)" <louistw@uab.edu>
Date: Fri, 6 Mar 2020 18:16:02 +0000
Subject: [PATCH] Call modal show in displayloading function

---
 app/static/scripts/function.js | 18 ++----------------
 1 file changed, 2 insertions(+), 16 deletions(-)

diff --git a/app/static/scripts/function.js b/app/static/scripts/function.js
index 3c4d5cb..bfc452e 100644
--- a/app/static/scripts/function.js
+++ b/app/static/scripts/function.js
@@ -1,19 +1,5 @@
 function displayloading() {
-            document.getElementById("notification_window").innerHTML = "" +
-                "<div class=\"joyride-tip-guide\" data-index=\"0\" style=\"visibility: visible; display: block; top: 77.5px; left: 570px;\"><span class=\"joyride-nub\" style=\"display: none;\"></span><div class=\"joyride-content-wrapper\" role=\"dialog\"><ol>\n" +
-                "        <h4>\n" +
-                "\n" +
-                "          Your account is pending creation...\n" +
-                "\n" +
-                "        </h4>\n" +
-                "                <br><p>\n" +
-                "                    This can take between 5-10 min.\n" +
-                "                </p>\n" +
-                "      </ol>\n" +
-                "                <img src=\"/static/img/loading.gif\" style=\"width: 35px; height: auto\"> Pending...\n" +
-                "            </div></div>\n" +
-                "\n" +
-                "    <div class=\"joyride-modal-bg\" style=\"display: block;\"></div>"
+	$('#myModal').modal('show');
 }
 
 function request_account() {
@@ -26,4 +12,4 @@ function request_account() {
 
 function refresh() {
     document.location.reload(true);
-}
\ No newline at end of file
+}
-- 
GitLab