Simplify javascript.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Fri, 7 Jan 2011 20:12:13 +0000 (21:12 +0100)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Fri, 7 Jan 2011 20:12:13 +0000 (21:12 +0100)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
plugins/compiler.checkpasswd.php
templates/backtrace.tpl
templates/bug.tpl
templates/site_errors.tpl

index 57e99b3..d396b23 100644 (file)
@@ -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 . ');
                 });
               //]]></script>
index e82021a..68b561e 100644 (file)
@@ -23,7 +23,7 @@
 <script type="text/javascript">
 {literal}
 // <![CDATA[
-$(document).ready(function() {
+$(function() {
   $(".backtrace").click(function() {
     $(this).children(".bt_details").toggle();
   });
index 5d254c9..6a5e354 100644 (file)
@@ -48,7 +48,7 @@
   </form>
   <script type="text/javascript">
     {literal}
-    $(document).ready(function() {
+    $(function() {
       var edited=false;
       $('#flyspray_detail')
         .focus(function() {
index 485dc40..83cf4c3 100644 (file)
@@ -23,7 +23,7 @@
 <script type="text/javascript">\r
 {literal}\r
 // <![CDATA[\r
-$(document).ready(function() {\r
+$(function() {\r
   $(".error_state").click(function() {\r
     $(this).children(".error_state_content").toggle();\r
   });\r