]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5718 Fix the ordering of issues in the same line
authorStas Vilchik <vilchiks@gmail.com>
Tue, 4 Nov 2014 10:31:04 +0000 (11:31 +0100)
committerStas Vilchik <vilchiks@gmail.com>
Tue, 4 Nov 2014 10:31:04 +0000 (11:31 +0100)
server/sonar-web/src/main/coffee/issues/component-viewer/main.coffee

index 036088dde58c586d456d444bf941a2cd33b12ec3..f269fd143bc1a515c36dd2db4145b44be00e4500 100644 (file)
@@ -122,7 +122,10 @@ define [
         issueView.render().$el.insertBefore @$('.issues-workspace-component-viewer-code')
       else
         row.find('.line').addClass 'issue'
-        barRow = $('<tr></tr>').insertAfter row
+        positionRow = row
+        while positionRow.next().hasClass('issues-issue-row')
+          positionRow = positionRow.next()
+        barRow = $('<tr class="issues-issue-row"></tr>').insertAfter positionRow
         barCell = $('<td colspan="2"></td>').appendTo barRow
         issueView.render().$el.appendTo barCell