aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2014-12-01 17:01:38 +0100
committerStas Vilchik <vilchiks@gmail.com>2014-12-01 17:01:43 +0100
commita5f1d64bc57a889e6270ec3b39c7565b93073dd8 (patch)
tree3f9d10f9460603a19b421762362412ac94c38598
parentab4232b3931437951dda555553fbd2ef1daada74 (diff)
downloadsonarqube-a5f1d64bc57a889e6270ec3b39c7565b93073dd8.tar.gz
sonarqube-a5f1d64bc57a889e6270ec3b39c7565b93073dd8.zip
SONAR-5877 Fix bug with large duplications column
-rw-r--r--server/sonar-web/src/main/js/source-viewer/viewer.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/source-viewer/viewer.js b/server/sonar-web/src/main/js/source-viewer/viewer.js
index 48c31943112..036f3042ea7 100644
--- a/server/sonar-web/src/main/js/source-viewer/viewer.js
+++ b/server/sonar-web/src/main/js/source-viewer/viewer.js
@@ -188,6 +188,7 @@ define([
that.model.addDuplications(data.duplications);
that.model.set({
duplications: data.duplications,
+ duplicationsParsed: duplications,
duplicationFiles: data.files
});
});
@@ -396,6 +397,8 @@ define([
source: source,
hasSourceBefore: data.sources.length === that.LINES_AROUND
});
+ that.model.addDuplications(that.model.get('duplications'));
+ that.model.addMeta(that.model.get('duplicationsParsed'));
that.render();
that.scrollToLine(firstLine);
if (that.model.get('hasSourceBefore') || that.model.get('hasSourceAfter')) {
@@ -421,6 +424,8 @@ define([
source: source,
hasSourceAfter: data.sources.length === that.LINES_AROUND
});
+ that.model.addDuplications(that.model.get('duplications'));
+ that.model.addMeta(that.model.get('duplicationsParsed'));
that.render();
if (that.model.get('hasSourceBefore') || that.model.get('hasSourceAfter')) {
that.bindScrollEvents();