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 @@
})
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 ) {
......
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