]> source.dussan.org Git - nextcloud-server.git/commitdiff
Removes the setTimeout() method.
authorraghunayyar <me@iraghu.com>
Tue, 26 Mar 2013 18:02:26 +0000 (23:32 +0530)
committerraghunayyar <me@iraghu.com>
Tue, 26 Mar 2013 18:02:26 +0000 (23:32 +0530)
core/js/js.js

index 3f1934241fbcd7b09b4ba39da21112f33195a742..0fb491d67ccdec2d43bbafa8fac8e844002d9d42 100644 (file)
@@ -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]'));