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

added time delay in the modal before redirecting to referrer

parent 94f14c5a
No related branches found
No related tags found
No related merge requests found
......@@ -21,7 +21,11 @@
});
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 ) {
......
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