]> source.dussan.org Git - sonarqube.git/commitdiff
open the link 'new window' into a popup, but not into a window
authorsimonbrandhof <simon.brandhof@gmail.com>
Sat, 5 Mar 2011 13:13:14 +0000 (14:13 +0100)
committersimonbrandhof <simon.brandhof@gmail.com>
Sat, 5 Mar 2011 13:13:14 +0000 (14:13 +0100)
sonar-server/src/main/webapp/WEB-INF/app/views/resource/_tabs.html.erb
sonar-server/src/main/webapp/stylesheets/style.css

index f8e758d3388a343f649b517b9c07cd4b86d4ab8b..bc1af726fb110287190fbf6f14d95c14773c22bf 100644 (file)
@@ -16,7 +16,7 @@
     <%   first=false
        end
        if request.xhr? %>
-      <li class="<%= 'first' if first -%>"><a href="<%= ApplicationController.root_context -%>/resource/index/<%= @resource.key -%>" target="resource">New Window</a></li>
+      <li class="<%= 'first' if first -%>"><a href="<%= ApplicationController.root_context -%>/resource/index/<%= @resource.key -%>" onclick="window.open(this.href,'resource','height=800,width=900,scrollbars=1,resizable=1');return false;">New Window</a></li>
     <% end %>
   </ul>
   <ul class="tabs" >
index f0a60d8dda334a4c8170047f0042fb58e5b47a9b..f0bfa6d8daf1eb17d0c6351191f5731957a84154 100644 (file)
@@ -738,7 +738,7 @@ span.rulename a:hover {
   padding: 3px 0.5em;
 }
 #global_violations td img, #source_title img {
-  vertical-align: sub;
+  vertical-align: text-bottom;
 }
 .tab_header {
   border: 1px solid #DDD;