From 4dc47b399756f4d372d63e35b790ca27132b3371 Mon Sep 17 00:00:00 2001 From: Krish M <krish94@uab.edu> Date: Thu, 2 Jun 2022 15:41:15 -0500 Subject: [PATCH] added time delay in the modal before redirecting to referrer --- app/templates/auth/SignUp.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/templates/auth/SignUp.html b/app/templates/auth/SignUp.html index c7303ab..26c1aaa 100644 --- a/app/templates/auth/SignUp.html +++ b/app/templates/auth/SignUp.html @@ -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 ) { -- GitLab