]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5209 Some fixes
authorStas Vilchik <vilchiks@gmail.com>
Fri, 20 Jun 2014 10:36:32 +0000 (16:36 +0600)
committerStas Vilchik <vilchiks@gmail.com>
Fri, 20 Jun 2014 10:36:32 +0000 (16:36 +0600)
sonar-server/src/main/coffee/component-viewer/app.coffee
sonar-server/src/main/coffee/drilldown/app.coffee

index eefb05a08365bd9088feec67cbfe7a21c42f1f17..aab3912ddc14564e9d01c0c7c8408b51a7323f15 100644 (file)
@@ -79,6 +79,7 @@ requirejs [
         else if params.tab?
           viewer.state.set activeHeaderTab: params.tab
           viewer.headerView.render()
+          viewer.showAllLines()
         else if params.currentIssue?
           loadIssue params.currentIssue
         else viewer.showAllLines()
index f7704f39cc8a54b305ac09cd272d1dfdc6f0056e..7cc6ba303a69c73f0cb74d25d0cc2d81715ce06a 100644 (file)
@@ -72,9 +72,10 @@ requirejs [
       f = ->
         if drilldown.period?
           viewer.enablePeriod drilldown.period, activeHeaderItem
-        else
+        else if activeHeaderItem?
           viewer.state.set activeHeaderTab: activeHeaderTab, activeHeaderItem: activeHeaderItem
           viewer.render()
+        else viewer.showAllLines()
 
       viewer.open(key).done ->
         if activeHeaderTab?