mirror of https://github.com/apache/cloudstack.git
CS-15518: Fix password field garbling on login screen.
From ASF master @ b10a619635
This commit is contained in:
parent
5cacd059ee
commit
ad132d43b0
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue