aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2013-06-24 09:41:28 +0200
committerSimon Brandhof <simon.brandhof@gmail.com>2013-06-24 09:41:28 +0200
commitf9061b9ae4ded1b94024375efab2a38ac582c64c (patch)
tree42f7a72091a9a34412d10497e357036749b5dfff
parent08257f901822eba9bc060ea3b9b391f314d13218 (diff)
downloadsonarqube-f9061b9ae4ded1b94024375efab2a38ac582c64c.tar.gz
sonarqube-f9061b9ae4ded1b94024375efab2a38ac582c64c.zip
SONAR-4425 JS warning on IE8 when opening file popup
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/views/resource/index.html.erb8
1 files changed, 5 insertions, 3 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/resource/index.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/resource/index.html.erb
index f1ba5bc0a8c..f5f81a21fe3 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/views/resource/index.html.erb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/views/resource/index.html.erb
@@ -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