mirror of https://github.com/apache/cloudstack.git
Merge branch 'CS-15518'
This commit is contained in:
commit
730f808d18
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue