From 50fc094bce2a67b6eb21fd48feafa87f7dcb0694 Mon Sep 17 00:00:00 2001 From: Alexander Machehin Date: Fri, 2 Mar 2012 21:32:00 +0600 Subject: [PATCH] [refs #228] fuuuuu... --- app/assets/javascripts/login.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/login.js b/app/assets/javascripts/login.js index d8a00f4a7..74dbb2e36 100644 --- a/app/assets/javascripts/login.js +++ b/app/assets/javascripts/login.js @@ -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'); });