diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2015-08-21 11:40:53 +0200 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2015-08-21 11:40:53 +0200 |
commit | 573e4834fd6fbee9afcd460866683ead8bcf099f (patch) | |
tree | 64e67f7fa8bf510e3d154db46a3e023f2e9e4026 /server/sonar-web/src/main/js/components | |
parent | 9382396118de38a6ba767f7bc27b8d15bd98d53f (diff) | |
download | sonarqube-573e4834fd6fbee9afcd460866683ead8bcf099f.tar.gz sonarqube-573e4834fd6fbee9afcd460866683ead8bcf099f.zip |
SONAR-6576 fix side-effects of issue location highlighting
Diffstat (limited to 'server/sonar-web/src/main/js/components')
-rw-r--r-- | server/sonar-web/src/main/js/components/source-viewer/main.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/components/source-viewer/main.js b/server/sonar-web/src/main/js/components/source-viewer/main.js index 3cf0b381b72..dca487a3568 100644 --- a/server/sonar-web/src/main/js/components/source-viewer/main.js +++ b/server/sonar-web/src/main/js/components/source-viewer/main.js @@ -792,9 +792,10 @@ define([ _location = { from: from, to: to }; // mark issue location in the source code - var code = row.find('pre').html(), + var codeEl = row.find('.source-line-code-inner > pre'), + code = codeEl.html(), newCode = highlightLocations(code, [_location], 'source-line-code-secondary-issue'); - row.find('pre').html(newCode); + codeEl.html(newCode); } }, |