From: Stas Vilchik Date: Tue, 4 Nov 2014 10:31:04 +0000 (+0100) Subject: SONAR-5718 Fix the ordering of issues in the same line X-Git-Tag: 5.0-RC1~424 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9dad86347b79f7fe4b59fdac181816f9df635004;p=sonarqube.git SONAR-5718 Fix the ordering of issues in the same line --- diff --git a/server/sonar-web/src/main/coffee/issues/component-viewer/main.coffee b/server/sonar-web/src/main/coffee/issues/component-viewer/main.coffee index 036088dde58..f269fd143bc 100644 --- a/server/sonar-web/src/main/coffee/issues/component-viewer/main.coffee +++ b/server/sonar-web/src/main/coffee/issues/component-viewer/main.coffee @@ -122,7 +122,10 @@ define [ issueView.render().$el.insertBefore @$('.issues-workspace-component-viewer-code') else row.find('.line').addClass 'issue' - barRow = $('').insertAfter row + positionRow = row + while positionRow.next().hasClass('issues-issue-row') + positionRow = positionRow.next() + barRow = $('').insertAfter positionRow barCell = $('').appendTo barRow issueView.render().$el.appendTo barCell