Merge pull request #5295 from owncloud/show-eye-in-personal

Shows The Eye permanently in the Confirm Password field in Personal Settings
This commit is contained in:
Raghu Nayyar 2013-10-15 02:59:53 -07:00
commit 8c25b5a0c1
2 changed files with 6 additions and 10 deletions

View File

@ -38,7 +38,11 @@
'tabindex' : $element.attr('tabindex'),
'autocomplete' : 'off'
});
if($element.attr('placeholder') !== undefined) {
$clone.attr('placeholder', $element.attr('placeholder'));
}
return $clone;
};

View File

@ -746,15 +746,7 @@ $(document).ready(function(){
});
var setShowPassword = function(input, label) {
input.showPassword().keyup(function(){
if (input.val().length == 0) {
label.hide();
}
else {
label.css("display", "inline").show();
}
});
label.hide();
input.showPassword().keyup();
};
setShowPassword($('#adminpass'), $('label[for=show]'));
setShowPassword($('#pass2'), $('label[for=personal-show]'));