X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=plugins%2Fcompiler.checkpasswd.php;h=5c10a2affc8f657b0c454c446074bf64e58e67df;hb=908fd496dab6ca85a3c6c3a555ee7e2160685332;hp=87dabf57bb62cea3a123e402e4c746bcdbee5ca0;hpb=de99248c4078f3646316e3d09dfa9fe999bbd97d;p=platal.git diff --git a/plugins/compiler.checkpasswd.php b/plugins/compiler.checkpasswd.php index 87dabf5..5c10a2a 100644 --- a/plugins/compiler.checkpasswd.php +++ b/plugins/compiler.checkpasswd.php @@ -24,7 +24,7 @@ function smarty_compiler_checkpasswd($tag_attrs, &$compiler) { extract($compiler->_parse_attrs($tag_attrs)); if (!isset($width)) { - $width = '250px'; + $width = '230px'; } if (!isset($prompt)) { $prompt = "'nouveau'"; @@ -40,11 +40,16 @@ 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)); }); //]]> -