X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=plugins%2Fcompiler.checkpasswd.php;fp=plugins%2Fcompiler.checkpasswd.php;h=5c10a2affc8f657b0c454c446074bf64e58e67df;hb=006819700381ba35f121b83b1c55828dd7b4d66e;hp=0861e456b4fc0288b15a0f94ca6b93548b052444;hpb=3d01af442f218fc776ee91905412894716fd5ac6;p=platal.git diff --git a/plugins/compiler.checkpasswd.php b/plugins/compiler.checkpasswd.php index 0861e45..5c10a2a 100644 --- a/plugins/compiler.checkpasswd.php +++ b/plugins/compiler.checkpasswd.php @@ -40,7 +40,7 @@ function smarty_compiler_checkpasswd($tag_attrs, &$compiler) var passwordprompt_submit = ' . $submit . '; $(":input[@name=' . $prompt . ']").keyup(function(event) { checkPassword(event.target); }); $(document).ready(function() { - $(":submit[@name=' . $submit . ']").attr("disabled", "disabled"); + checkPassword($(":input[@name=' . $prompt . ']").get(0)); }); //]]>