Skip to content
Snippets Groups Projects
Commit 7afcc88f authored by Bo-Chun Chen's avatar Bo-Chun Chen
Browse files

Hide Bootstrap modal after account's ready

parent ddc9c6d3
No related branches found
No related tags found
No related merge requests found
...@@ -21,11 +21,8 @@ ...@@ -21,11 +21,8 @@
}) })
socket.on( 'account ready', function( msg ) { socket.on( 'account ready', function( msg ) {
let element = document.getElementById("notification_window"); $('#myModal').modal('hide');
element.parentNode.removeChild(element); alert("Account has been created!");
element.innerHTML = " ";
alert("Account creation successful!");
}) })
socket.on( 'Account creation failed', function( msg ) { socket.on( 'Account creation failed', function( msg ) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment