diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2014-09-26 18:31:43 +0600 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2014-09-26 18:31:43 +0600 |
commit | c14b3a693c48f60dfd76602365379bbddb2130c6 (patch) | |
tree | 3e141637f0f072b113ac54b2e04735f43a2e3c35 | |
parent | 070db3abc8f5854935f25ac53692d3111cb6436c (diff) | |
download | sonarqube-c14b3a693c48f60dfd76602365379bbddb2130c6.tar.gz sonarqube-c14b3a693c48f60dfd76602365379bbddb2130c6.zip |
Revert "SONAR-5664 Component Viewer doesn't work properly in the differential mode in Safari"
This reverts commit 070db3abc8f5854935f25ac53692d3111cb6436c.
-rw-r--r-- | server/sonar-web/src/main/coffee/component-viewer/main.coffee | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/coffee/component-viewer/main.coffee b/server/sonar-web/src/main/coffee/component-viewer/main.coffee index bea66c2dc6a..9f65306e531 100644 --- a/server/sonar-web/src/main/coffee/component-viewer/main.coffee +++ b/server/sonar-web/src/main/coffee/component-viewer/main.coffee @@ -185,8 +185,8 @@ define [ # Periods @periods.reset [{label: t('none')}] data.periods.forEach (p) => - d = moment p[2] - date = new Date d.get('year'), d.get('month'), d.get('date') + d = new Date p[2] + d.setHours 0, 0, 0, 0 p = @periods.add key: p[0], label: p[1], sinceDate: d |