Removes the setTimeout() method.

This commit is contained in:
raghunayyar 2013-03-26 23:32:26 +05:30
parent 25a8690318
commit 8d7aa42b9a
1 changed files with 9 additions and 12 deletions

View File

@ -638,8 +638,6 @@ $(document).ready(function(){
});
var setShowPassword = function(input, label) {
// 'show password' checkbox
setTimeout(function() {
input.showPassword().keyup(function(){
if (input.val().length == 0) {
label.hide();
@ -648,7 +646,6 @@ $(document).ready(function(){
label.css("display", "inline").show();
}
});
},200);
label.hide();
};
setShowPassword($('#password'), $('label[for=show]'));