From: Florent Bruneau Date: Fri, 7 Jan 2011 20:12:13 +0000 (+0100) Subject: Simplify javascript. X-Git-Tag: core/1.1.2~11 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=d5494feb1293635770f81280baca242f69e85431;p=platal.git Simplify javascript. Signed-off-by: Florent Bruneau --- diff --git a/plugins/compiler.checkpasswd.php b/plugins/compiler.checkpasswd.php index 57e99b3..d396b23 100644 --- a/plugins/compiler.checkpasswd.php +++ b/plugins/compiler.checkpasswd.php @@ -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 . '); }); //]]> diff --git a/templates/backtrace.tpl b/templates/backtrace.tpl index e82021a..68b561e 100644 --- a/templates/backtrace.tpl +++ b/templates/backtrace.tpl @@ -23,7 +23,7 @@