Skip to content
Snippets Groups Projects
Commit deeedab0 authored by Ravi Tripathi's avatar Ravi Tripathi
Browse files

Merge branch 'feat-create-account-modal' into 'master'

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

See merge request rc/self-reg-form!54
parents 4f1566da 1944376a
No related branches found
No related tags found
1 merge request!54feat: add delay to modal on account create before redirecting to referrer
......@@ -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