Skip to content
Snippets Groups Projects
Commit 8c25b5a0 authored by Raghu Nayyar's avatar Raghu Nayyar
Browse files

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

Shows The Eye permanently in the Confirm Password field in Personal Settings
parents 52501d6b 2def1a88
No related branches found
No related tags found
No related merge requests found
......@@ -38,7 +38,11 @@
'tabindex' : $element.attr('tabindex'),
'autocomplete' : 'off'
});
if($element.attr('placeholder') !== undefined) {
$clone.attr('placeholder', $element.attr('placeholder'));
}
return $clone;
};
......
......@@ -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]'));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment