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
|
@ -38,7 +38,11 @@
|
||||||
'tabindex' : $element.attr('tabindex'),
|
'tabindex' : $element.attr('tabindex'),
|
||||||
'autocomplete' : 'off'
|
'autocomplete' : 'off'
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if($element.attr('placeholder') !== undefined) {
|
||||||
|
$clone.attr('placeholder', $element.attr('placeholder'));
|
||||||
|
}
|
||||||
|
|
||||||
return $clone;
|
return $clone;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -746,15 +746,7 @@ $(document).ready(function(){
|
||||||
});
|
});
|
||||||
|
|
||||||
var setShowPassword = function(input, label) {
|
var setShowPassword = function(input, label) {
|
||||||
input.showPassword().keyup(function(){
|
input.showPassword().keyup();
|
||||||
if (input.val().length == 0) {
|
|
||||||
label.hide();
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
label.css("display", "inline").show();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
label.hide();
|
|
||||||
};
|
};
|
||||||
setShowPassword($('#adminpass'), $('label[for=show]'));
|
setShowPassword($('#adminpass'), $('label[for=show]'));
|
||||||
setShowPassword($('#pass2'), $('label[for=personal-show]'));
|
setShowPassword($('#pass2'), $('label[for=personal-show]'));
|
||||||
|
|
Loading…
Reference in New Issue