// update javascript login page

This commit is contained in:
Sarah Lorenzini committed 2013-10-02 14:36:14 +02:00
1 parent f5a4aeeab5
commit ba06b217cc
2 files changed
+3 -3

No files matched your search

@@ -29,7 +29,7 @@
var label_error = '{l s='error'}'; var label_error = '{l s='error'}';
</script> </script>
<div id="container"> <div id="container">
<div id="error" {if !isset($errors)}class="hide"{/if}> <div id="error">
{if isset($errors)} {if isset($errors)}
<h3>{if $nbErrors > 1}{l s='There are %d errors.' sprintf=$nbErrors}{else}{l s='There is %d error.' sprintf=$nbErrors}{/if}</h3> <h3>{if $nbErrors > 1}{l s='There are %d errors.' sprintf=$nbErrors}{else}{l s='There is %d error.' sprintf=$nbErrors}{/if}</h3>
<ol style="margin: 0 0 0 20px;"> <ol style="margin: 0 0 0 20px;">
+2 -2
View File
@@ -32,7 +32,7 @@ $(document).ready(function() {
function displayForgotPassword() { function displayForgotPassword() {
$('#error').hide(); $('#error').hide();
$('#login_form').fadeOut('fast', function () { $('#login_form').fadeOut('fast', function () {
$("#forgot_password_form").fadeIn('fast'); $("#forgot_password_form").removeClass('hide').fadeIn('fast');
// Focus on email address forgot field // Focus on email address forgot field
$('#email_forgot').select(); $('#email_forgot').select();
}); });
@@ -81,7 +81,7 @@ function doAjaxLogin(redirect) {
window.location.assign(jsonData.redirect); window.location.assign(jsonData.redirect);
}, },
error: function(XMLHttpRequest, textStatus, errorThrown) { error: function(XMLHttpRequest, textStatus, errorThrown) {
$('#error').html('<h3>TECHNICAL ERROR:</h3><p>Details: Error thrown: ' + XMLHttpRequest + '</p><p>Text status: ' + textStatus + '</p>').show(); $('#error').html('<h3>TECHNICAL ERROR:</h3><p>Details: Error thrown: ' + XMLHttpRequest + '</p><p>Text status: ' + textStatus + '</p>').removeClass('hide');
$('#login_form .ajax-loader').fadeOut('slow'); $('#login_form .ajax-loader').fadeOut('slow');
} }
}); });