From d5494feb1293635770f81280baca242f69e85431 Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Fri, 7 Jan 2011 21:12:13 +0100 Subject: [PATCH] Simplify javascript. Signed-off-by: Florent Bruneau --- plugins/compiler.checkpasswd.php | 2 +- templates/backtrace.tpl | 2 +- templates/bug.tpl | 2 +- templates/site_errors.tpl | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) 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 @@