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:
commit
8c25b5a0c1
2 changed files with 6 additions and 10 deletions
4
core/js/jquery-showpassword.js
vendored
4
core/js/jquery-showpassword.js
vendored
|
@ -39,6 +39,10 @@
|
|||
'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]'));
|
||||
|
|
Loading…
Reference in a new issue