aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2014-07-01 13:54:55 +0600
committerStas Vilchik <vilchiks@gmail.com>2014-07-01 13:54:55 +0600
commitb4ee43b4e63c79919b18d7fa5e62b1ccec7e1a0f (patch)
tree9b5f3207f44df15b645e511aaf44b2d637420f83 /sonar-server
parent268db59310338481619700b25d12e608097c3239 (diff)
downloadsonarqube-b4ee43b4e63c79919b18d7fa5e62b1ccec7e1a0f.tar.gz
sonarqube-b4ee43b4e63c79919b18d7fa5e62b1ccec7e1a0f.zip
SONAR-5209 Fix transition after permalinks
Diffstat (limited to 'sonar-server')
-rw-r--r--sonar-server/src/main/coffee/component-viewer/app.coffee1
-rw-r--r--sonar-server/src/main/coffee/dashboard/file-app.coffee1
2 files changed, 2 insertions, 0 deletions
diff --git a/sonar-server/src/main/coffee/component-viewer/app.coffee b/sonar-server/src/main/coffee/component-viewer/app.coffee
index 030b538f6d9..f398d217ba9 100644
--- a/sonar-server/src/main/coffee/component-viewer/app.coffee
+++ b/sonar-server/src/main/coffee/component-viewer/app.coffee
@@ -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
diff --git a/sonar-server/src/main/coffee/dashboard/file-app.coffee b/sonar-server/src/main/coffee/dashboard/file-app.coffee
index 4ed8aa81d12..8248a285bea 100644
--- a/sonar-server/src/main/coffee/dashboard/file-app.coffee
+++ b/sonar-server/src/main/coffee/dashboard/file-app.coffee
@@ -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()