Removes the setTimeout() method.
This commit is contained in:
parent
25a8690318
commit
8d7aa42b9a
|
@ -638,18 +638,15 @@ $(document).ready(function(){
|
||||||
});
|
});
|
||||||
|
|
||||||
var setShowPassword = function(input, label) {
|
var setShowPassword = function(input, label) {
|
||||||
// 'show password' checkbox
|
input.showPassword().keyup(function(){
|
||||||
setTimeout(function() {
|
if (input.val().length == 0) {
|
||||||
input.showPassword().keyup(function(){
|
label.hide();
|
||||||
if (input.val().length == 0) {
|
}
|
||||||
label.hide();
|
else {
|
||||||
}
|
label.css("display", "inline").show();
|
||||||
else {
|
}
|
||||||
label.css("display", "inline").show();
|
});
|
||||||
}
|
label.hide();
|
||||||
});
|
|
||||||
},200);
|
|
||||||
label.hide();
|
|
||||||
};
|
};
|
||||||
setShowPassword($('#password'), $('label[for=show]'));
|
setShowPassword($('#password'), $('label[for=show]'));
|
||||||
setShowPassword($('#adminpass'), $('label[for=show]'));
|
setShowPassword($('#adminpass'), $('label[for=show]'));
|
||||||
|
|
Loading…
Reference in New Issue