Corrected message styling class for the forgot_password.php page.
This commit is contained in:
parent
5654dd46cf
commit
a3d12cd04e
1 changed files with 3 additions and 3 deletions
|
@ -98,19 +98,19 @@
|
||||||
console.log('Regenerate Password Response: ', response);
|
console.log('Regenerate Password Response: ', response);
|
||||||
//////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
$('.alert').removeClass('hidden alert-danger alert-success');
|
||||||
$('#get-new-password').prop('disabled', false);
|
$('#get-new-password').prop('disabled', false);
|
||||||
|
|
||||||
if (!GeneralFunctions.handleAjaxExceptions(response)) return;
|
if (!GeneralFunctions.handleAjaxExceptions(response)) return;
|
||||||
|
|
||||||
if (response == GlobalVariables.AJAX_SUCCESS) {
|
if (response == GlobalVariables.AJAX_SUCCESS) {
|
||||||
$('.alert').addClass('alert-success');
|
$('.alert').addClass('alert-success');
|
||||||
$('.alert').text(EALang['new_password_sent_with_email']);
|
$('.alert').text(EALang['new_password_sent_with_email']);
|
||||||
} else {
|
} else {
|
||||||
|
$('.alert').addClass('alert-danger');
|
||||||
$('.alert').text('The operation failed! Please enter a valid username '
|
$('.alert').text('The operation failed! Please enter a valid username '
|
||||||
+ 'and email address in order to get a new password.');
|
+ 'and email address in order to get a new password.');
|
||||||
}
|
}
|
||||||
$('.alert')
|
|
||||||
.removeClass('hidden alert-danger alert-success')
|
|
||||||
.addClass('alert-danger');
|
|
||||||
}, 'json');
|
}, 'json');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue