Skip to content
Snippets Groups Projects
Commit 1944376a authored by Krish Moodbidri's avatar Krish Moodbidri
Browse files

feat: add delay to modal on account create before redirecting to referrer

parent 4f1566da
1 merge request!54feat: add delay to modal on account create before redirecting to referrer
...@@ -21,7 +21,11 @@ ...@@ -21,7 +21,11 @@
}); });
socket.on( 'account ready', function( msg ) { socket.on( 'account ready', function( msg ) {
window.location.replace('{{ referrer }}'); $('#myModal2 .modal-title').text("Account Creation Successful");
$('#myModal2 .modal-body').text("Redirecting...");
setTimeout(() => {
window.location.replace('{{ referrer }}');
}, 5000);
}); });
socket.on( 'account error', function( msg ) { socket.on( 'account error', 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