CS-15518: Fix password field garbling on login screen.

From ASF master @ b10a619635
This commit is contained in:
Brian Federle 2012-08-06 14:33:41 -07:00
parent 5cacd059ee
commit ad132d43b0
1 changed files with 11 additions and 0 deletions

View File

@ -34,6 +34,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();