fix for #40, localStorage.doShake not used anymore

This commit is contained in:
Hannes Mannerheim 2015-02-25 03:45:13 +01:00
parent 5698e7f2e8
commit af1635825d

View File

@ -572,16 +572,15 @@ function logoutWithoutReload(doShake) {
$('input#nickname').focus();
$('.front-signup').animate({opacity:'1'},200);
if(doShake || localStorage.doShake) {
if(doShake) {
$('input#nickname').css('background-color','pink');
$('input#password').css('background-color','pink');
}
$('#login-content').animate({opacity:'1'},200, function(){
if(doShake || localStorage.doShake) {
if(doShake) {
$('#login-content').effect('shake',{distance:5,times:2},function(){
$('input#nickname').animate({backgroundColor:'#fff'},1000);
$('input#password').animate({backgroundColor:'#fff'},1000);
delete localStorage.doShake;
});
}
$('.front-welcome-text').fadeIn(3000);