diff options
author | raghunayyar <me@iraghu.com> | 2013-03-26 23:32:26 +0530 |
---|---|---|
committer | raghunayyar <me@iraghu.com> | 2013-03-26 23:32:26 +0530 |
commit | 8d7aa42b9ac162794ec569c0aea90a9a48b81160 (patch) | |
tree | 9902b137121b7e8460728f5599bb812cfaf47e3b /core/js | |
parent | 25a869031867f502e5a1cb7b9123306a2b97d6da (diff) | |
download | nextcloud-server-8d7aa42b9ac162794ec569c0aea90a9a48b81160.tar.gz nextcloud-server-8d7aa42b9ac162794ec569c0aea90a9a48b81160.zip |
Removes the setTimeout() method.
Diffstat (limited to 'core/js')
-rw-r--r-- | core/js/js.js | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/core/js/js.js b/core/js/js.js index 3f1934241fb..0fb491d67cc 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -638,18 +638,15 @@ $(document).ready(function(){ }); var setShowPassword = function(input, label) { - // 'show password' checkbox - setTimeout(function() { - input.showPassword().keyup(function(){ - if (input.val().length == 0) { - label.hide(); - } - else { - label.css("display", "inline").show(); - } - }); - },200); - label.hide(); + input.showPassword().keyup(function(){ + if (input.val().length == 0) { + label.hide(); + } + else { + label.css("display", "inline").show(); + } + }); + label.hide(); }; setShowPassword($('#password'), $('label[for=show]')); setShowPassword($('#adminpass'), $('label[for=show]')); |