From 7afcc88f13be78ae1fcc3bbe560c19b4985e55cb Mon Sep 17 00:00:00 2001
From: "Bo-Chun Louis Chen(VM)" <louistw@uab.edu>
Date: Fri, 6 Mar 2020 20:32:13 +0000
Subject: [PATCH] Hide Bootstrap modal after account's ready

---
 app/templates/auth/SignUp.html | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/app/templates/auth/SignUp.html b/app/templates/auth/SignUp.html
index 79befbe..0582b26 100644
--- a/app/templates/auth/SignUp.html
+++ b/app/templates/auth/SignUp.html
@@ -21,11 +21,8 @@
         })
 
         socket.on( 'account ready', function( msg ) {
-            let element = document.getElementById("notification_window");
-            element.parentNode.removeChild(element);
-            element.innerHTML = " ";
-            alert("Account creation successful!");
-
+          $('#myModal').modal('hide');
+          alert("Account has been created!");
         })
 
         socket.on( 'Account creation failed', function( msg ) {
-- 
GitLab