From d002e2a3a694c7477ca337d45e0025f9402ecfa3 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Mon, 21 Jul 2014 09:08:00 +0200 Subject: [PATCH] SONAR-5209 Fix issue when the unfiltered code is displayed --- sonar-server/src/main/coffee/component-viewer/app.coffee | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.39.5