Skip to content
Snippets Groups Projects

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

Merged Krish Moodbidri requested to merge krish94/self-reg-form:feat-create-account-modal into master
1 file
+ 5
1
Compare changes
  • Side-by-side
  • Inline
@@ -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 ) {
Loading