Merge branch 'CS-15518'

This commit is contained in:
olgasmola 2012-07-27 15:37:32 +03:00
commit 730f808d18
1 changed files with 11 additions and 0 deletions

View File

@ -38,6 +38,17 @@
$login.appendTo('html body');
$('html body').addClass('login');
// Remove label if field was auto filled
$.each($form.find('label'), function() {
var $label = $(this);
var $input = $form.find('input').filter(function() {
return $(this).attr('name') == $label.attr('for');
});
if ($input.val()) {
$label.hide();
}
});
// Form validation
$form.validate();