X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=plugins%2Fcompiler.checkpasswd.php;h=d3f26b39424c3bdcc0747abc422e56c92ade2296;hb=ad274e6db6423a279524c0c8120db041720c4177;hp=57e99b3a46f160a3fdd17728e3a2edb6070ab148;hpb=e92ecb8c24421ca1dd4f87ad7478d0d8277e1f60;p=platal.git diff --git a/plugins/compiler.checkpasswd.php b/plugins/compiler.checkpasswd.php index 57e99b3..d3f26b3 100644 --- a/plugins/compiler.checkpasswd.php +++ b/plugins/compiler.checkpasswd.php @@ -19,7 +19,7 @@ * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * ***************************************************************************/ -function smarty_compiler_checkpasswd($tag_attrs, &$compiler) +function smarty_compiler_checkpasswd($tag_attrs, $compiler) { extract($compiler->_parse_attrs($tag_attrs)); if (!isset($width)) { @@ -40,7 +40,7 @@ function smarty_compiler_checkpasswd($tag_attrs, &$compiler) var passwordprompt_name = '. $prompt . '; var passwordprompt_submit = ' . $submit . '; $(":input[name=' . $prompt . ']").keyup(function(event) { checkPassword(event.target, ' . $text . '); }); - $(document).ready(function() { + $(function() { checkPassword($(":input[name=' . $prompt . ']").get(0), ' . $text . '); }); //]]> @@ -54,6 +54,6 @@ function smarty_compiler_checkpasswd($tag_attrs, &$compiler)