Merge pull request #259 from warpc/228-fix_login_page

[refs #228] Fix error: couldn't login in to system
This commit is contained in:
Vladimir Sharshov 2012-03-02 07:39:30 -08:00
commit a2d338b6cd
1 changed files with 2 additions and 2 deletions

View File

@ -15,8 +15,8 @@ $(document).ready(function() {
$(this).addClass('registartion-input-focus').removeClass('registartion-input-error');
}).live('blur', function() {
var id = $(this).attr('id');
if(id == 'user_login') { $(this).val(login_default)}
else if(id == 'user_password') {$(this).val(pass_default)}
if(id == 'user_login' && $(this).val() == '') { $(this).val(login_default)}
else if(id == 'user_password' && $(this).val() == '') { $(this).val(pass_default)}
$(this).addClass('registartion-input-no-focus').removeClass('registartion-input-focus');
});