aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@gmail.com>2013-03-05 12:37:47 +0100
committerJulien Lancelot <julien.lancelot@gmail.com>2013-03-05 12:37:47 +0100
commite1aab863c93f17bed238ab35a73fbe00923b8d17 (patch)
tree14cbb0da689812709f0da2b7333ec325e5e6286e /sonar-server
parent2e3f0253f0bdcf995637cb83a5dd246c63df8abd (diff)
downloadsonarqube-e1aab863c93f17bed238ab35a73fbe00923b8d17.tar.gz
sonarqube-e1aab863c93f17bed238ab35a73fbe00923b8d17.zip
Fix issue when opening a new window from a file on IE
Diffstat (limited to 'sonar-server')
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/views/drilldown/measures.html.erb4
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/views/drilldown/violations.html.erb4
2 files changed, 6 insertions, 2 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/drilldown/measures.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/drilldown/measures.html.erb
index 1295da6a92d..2d4e1bf0aa7 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/views/drilldown/measures.html.erb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/views/drilldown/measures.html.erb
@@ -63,7 +63,9 @@
<td nowrap>
<% if resource.source_code? %>
<a href="<%= url_for :controller => 'resource', :action => 'index', :id => resource.key, :period => params[:period], :metric => @metric ? @metric.id : nil, :rule => @rule ? @rule.id : @severity, :display_title => 'true' -%>"
- onclick="window.open(this.href,'resource-<%= resource.key.parameterize -%>','height=800,width=900,scrollbars=1,resizable=1');return false;" id="popup-<%= resource.key.parameterize -%>"><%= image_tag 'new-window-16.gif', :alt => message('new_window') -%></a>
+ onclick="window.open(this.href,'resource-<%= resource.key.parameterize -%>','height=800,width=900,scrollbars=1,resizable=1');return false;"
+ id="popup-<%= resource.key.parameterize -%>"
+ target="_blank"><%= image_tag 'new-window-16.gif', :alt => message('new_window') -%></a>
<% else %>
<%= link_to(image_tag('zoom.png'), {:id => resource.id, :metric => @metric.id}, {:class => 'nolink'}) -%>
<% end %>
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/drilldown/violations.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/drilldown/violations.html.erb
index 2ed8690458d..b908a8f18ba 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/views/drilldown/violations.html.erb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/views/drilldown/violations.html.erb
@@ -142,7 +142,9 @@
<td nowrap>
<% if resource.source_code? %>
<a href="<%= url_for :controller => 'resource', :action => 'index', :id => resource.key, :period => params[:period], :metric => @metric ? @metric.id : nil, :rule => @rule ? @rule.id : @severity, :display_title => 'true' -%>"
- onclick="window.open(this.href,'resource-<%= resource.key.parameterize -%>','height=800,width=900,scrollbars=1,resizable=1');return false;" id="popup-<%= resource.key.parameterize -%>"><%= image_tag 'new-window-16.gif', :alt => message('new_window') -%></a>
+ onclick="window.open(this.href,'resource-<%= resource.key.parameterize -%>','height=800,width=900,scrollbars=1,resizable=1');return false;"
+ id="popup-<%= resource.key.parameterize -%>"
+ target="_blank"><%= image_tag 'new-window-16.gif', :alt => message('new_window') -%></a>
<% else %>
<%= link_to(image_tag('zoom.png'), {:id => resource.id}, {:class => 'nolink'}) %>
<% end %>