]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5209 Fix transition after permalinks
authorStas Vilchik <vilchiks@gmail.com>
Tue, 1 Jul 2014 07:54:55 +0000 (13:54 +0600)
committerStas Vilchik <vilchiks@gmail.com>
Tue, 1 Jul 2014 07:54:55 +0000 (13:54 +0600)
sonar-server/src/main/coffee/component-viewer/app.coffee
sonar-server/src/main/coffee/dashboard/file-app.coffee

index 030b538f6d91a59387d5711a1d738b720066dc95..f398d217ba9a07fe8cbae27b190ce48b7092ff86 100644 (file)
@@ -74,6 +74,7 @@ requirejs [
       viewer.open params.component
 
       viewer.on 'loaded', ->
+        viewer.off 'loaded'
         if params.tab? && params.item? && params.period?
           viewer.headerView.enableBar(params.tab).done ->
             viewer.enablePeriod +params.period, params.item
index 4ed8aa81d128f513ee92b5d9f7a6bc410a0535d5..8248a285bea072eb7c043b10cea55fa335f11f61 100644 (file)
@@ -53,6 +53,7 @@ requirejs [
         activeHeaderItem = metricConf.item
     viewer.open window.fileKey
     viewer.on 'loaded', ->
+      viewer.off 'loaded'
       if activeHeaderTab? && activeHeaderItem?
         viewer.state.set activeHeaderTab: activeHeaderTab, activeHeaderItem: activeHeaderItem
         viewer.headerView.render()