]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-4425 JS warning on IE8 when opening file popup
authorSimon Brandhof <simon.brandhof@gmail.com>
Mon, 24 Jun 2013 07:41:28 +0000 (09:41 +0200)
committerSimon Brandhof <simon.brandhof@gmail.com>
Mon, 24 Jun 2013 07:41:28 +0000 (09:41 +0200)
sonar-server/src/main/webapp/WEB-INF/app/views/resource/index.html.erb

index f1ba5bc0a8c397afcc23fb02ec56afda81e6f71b..f5f81a21fe363230c700b3ef1912ab976abbc582 100644 (file)
@@ -3,7 +3,9 @@
 
 <div id="accordion-panel"/>
 
-<script type="text/javascript">
-  // Always display title in popup mode
-  openAccordionItem('<%= url_for(params.merge({:display_title => 'true', :popup => 'true'})) -%>', this);
+<script>
+  $j(document).ready(function() {
+    // Always display title in popup mode
+    openAccordionItem('<%= url_for(params.merge({:display_title => 'true', :popup => 'true'})) -%>', this);
+  });
 </script>
\ No newline at end of file