From a3d12cd04ea1c65ff0a1d2f8678cb5cf9bc30b23 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Sun, 24 Jan 2016 17:38:02 +0100 Subject: [PATCH] Corrected message styling class for the forgot_password.php page. --- src/application/views/user/forgot_password.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/application/views/user/forgot_password.php b/src/application/views/user/forgot_password.php index 5d290705..cde1a0b4 100644 --- a/src/application/views/user/forgot_password.php +++ b/src/application/views/user/forgot_password.php @@ -98,19 +98,19 @@ console.log('Regenerate Password Response: ', response); ////////////////////////////////////////////////////////// + $('.alert').removeClass('hidden alert-danger alert-success'); $('#get-new-password').prop('disabled', false); + if (!GeneralFunctions.handleAjaxExceptions(response)) return; if (response == GlobalVariables.AJAX_SUCCESS) { $('.alert').addClass('alert-success'); $('.alert').text(EALang['new_password_sent_with_email']); } else { + $('.alert').addClass('alert-danger'); $('.alert').text('The operation failed! Please enter a valid username ' + 'and email address in order to get a new password.'); } - $('.alert') - .removeClass('hidden alert-danger alert-success') - .addClass('alert-danger'); }, 'json'); }); });