Should Display PasswordToggle Eye Everywhere.
This commit is contained in:
parent
e961dbaa38
commit
4eed240296
|
@ -413,7 +413,6 @@ label.infield { cursor:text !important; top:1.05em; left:.85em; }
|
|||
#personal-show + label {
|
||||
margin-top: 1em;
|
||||
margin-left: -3em;
|
||||
display:inline !important;
|
||||
}
|
||||
#passwordbutton {
|
||||
margin-left: .5em;
|
||||
|
|
|
@ -747,14 +747,8 @@ $(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.css("display", "inline").show();
|
||||
});
|
||||
label.hide();
|
||||
};
|
||||
setShowPassword($('#adminpass'), $('label[for=show]'));
|
||||
setShowPassword($('#pass2'), $('label[for=personal-show]'));
|
||||
|
|
Loading…
Reference in New Issue