summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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();