From a5f1d64bc57a889e6270ec3b39c7565b93073dd8 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Mon, 1 Dec 2014 17:01:38 +0100 Subject: SONAR-5877 Fix bug with large duplications column --- server/sonar-web/src/main/js/source-viewer/viewer.js | 5 +++++ 1 file changed, 5 insertions(+) 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(); -- cgit v1.2.3