Should Display PasswordToggle Eye Everywhere.

This commit is contained in:
raghunayyar 2013-10-15 11:36:44 +05:30
parent e961dbaa38
commit 4eed240296
2 changed files with 1 additions and 8 deletions

View File

@ -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;

View File

@ -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]'));