aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server/src/main/coffee/component-viewer/app.coffee
diff options
context:
space:
mode:
Diffstat (limited to 'sonar-server/src/main/coffee/component-viewer/app.coffee')
-rw-r--r--sonar-server/src/main/coffee/component-viewer/app.coffee4
1 files changed, 3 insertions, 1 deletions
diff --git a/sonar-server/src/main/coffee/component-viewer/app.coffee b/sonar-server/src/main/coffee/component-viewer/app.coffee
index 7994287166a..10726c8d59e 100644
--- a/sonar-server/src/main/coffee/component-viewer/app.coffee
+++ b/sonar-server/src/main/coffee/component-viewer/app.coffee
@@ -70,7 +70,9 @@ requirejs [
blocks = params.blocks.split(';').map (b) ->
t = b.split ','
from: +t[0], to: +t[1]
- viewer.on 'resetShowBlocks', -> viewer.sourceView.showBlocks = blocks
+ viewer.on 'resetShowBlocks', ->
+ viewer.off 'resetShowBlocks'
+ viewer.sourceView.showBlocks = blocks
viewer.open params.component