]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5209 Speed up issues rendering (fix line numbers)
authorStas Vilchik <vilchiks@gmail.com>
Mon, 30 Jun 2014 08:19:50 +0000 (14:19 +0600)
committerStas Vilchik <vilchiks@gmail.com>
Mon, 30 Jun 2014 08:20:20 +0000 (14:20 +0600)
sonar-server/src/main/coffee/component-viewer/source.coffee
sonar-server/src/main/hbs/component-viewer/source.hbs

index 50aa37282d58d1ca8a6835bcc3ae0f642510475b..2139636dd8d35e08cea78d06a6246c7997cf3b00 100644 (file)
@@ -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}")
index 87542a5e3d6a2304b6f04a5d66425d66addbdb6b..980570b8f36d5cdfa01fa043853e40fc4ad3350c 100644 (file)
@@ -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}}">