]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5209 Fix issue when the unfiltered code is displayed
authorStas Vilchik <vilchiks@gmail.com>
Mon, 21 Jul 2014 07:08:00 +0000 (09:08 +0200)
committerStas Vilchik <vilchiks@gmail.com>
Mon, 21 Jul 2014 07:08:24 +0000 (09:08 +0200)
sonar-server/src/main/coffee/component-viewer/app.coffee

index 7994287166a7187f3b52f4541e00960b5cce5b63..10726c8d59ef2fd05e836579a1132fb2ef85b5b2 100644 (file)
@@ -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