From fe7a7710f55922ed7a067d8e0a85289d5d0f63b2 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Mon, 30 Jun 2014 14:19:50 +0600 Subject: [PATCH] SONAR-5209 Speed up issues rendering (fix line numbers) --- sonar-server/src/main/coffee/component-viewer/source.coffee | 1 + sonar-server/src/main/hbs/component-viewer/source.hbs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/sonar-server/src/main/coffee/component-viewer/source.coffee b/sonar-server/src/main/coffee/component-viewer/source.coffee index 50aa37282d5..2139636dd8d 100644 --- a/sonar-server/src/main/coffee/component-viewer/source.coffee +++ b/sonar-server/src/main/coffee/component-viewer/source.coffee @@ -104,6 +104,7 @@ define [ line = issue.line || 0 line = 0 if issue.resolution == 'FIXED' || issue.resolution == 'REMOVED' row = @$("##{@cid}-#{line}") + console.log "##{@cid}-#{line}" unless row.length > 0 line = 0 row = @$("##{@cid}-#{line}") diff --git a/sonar-server/src/main/hbs/component-viewer/source.hbs b/sonar-server/src/main/hbs/component-viewer/source.hbs index 87542a5e3d6..980570b8f36 100644 --- a/sonar-server/src/main/hbs/component-viewer/source.hbs +++ b/sonar-server/src/main/hbs/component-viewer/source.hbs @@ -28,7 +28,7 @@ {{#each source}} {{#if show}} - + {{#if ../../settings.scm}} -- 2.39.5