diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2014-06-30 14:19:50 +0600 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2014-06-30 14:20:20 +0600 |
commit | fe7a7710f55922ed7a067d8e0a85289d5d0f63b2 (patch) | |
tree | 17e4f182b0ec0d2a66c69dfe4b4578ba33852e4a | |
parent | db336dc55a922c937fe23e1ab0790636317eec87 (diff) | |
download | sonarqube-fe7a7710f55922ed7a067d8e0a85289d5d0f63b2.tar.gz sonarqube-fe7a7710f55922ed7a067d8e0a85289d5d0f63b2.zip |
SONAR-5209 Speed up issues rendering (fix line numbers)
-rw-r--r-- | sonar-server/src/main/coffee/component-viewer/source.coffee | 1 | ||||
-rw-r--r-- | sonar-server/src/main/hbs/component-viewer/source.hbs | 2 |
2 files changed, 2 insertions, 1 deletions
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}} - <tr class="row" data-line-number="{{lineNumber}}" id="{{uid}}-{{lineNumber}}"> + <tr class="row" data-line-number="{{lineNumber}}" id="{{../../uid}}-{{lineNumber}}"> {{#if ../../settings.scm}} <td class="stat {{#if scm}}scm{{/if}}"> |