aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>2014-07-02 15:30:34 +0200
committerJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>2014-07-02 15:30:34 +0200
commit5fcf6140f75e9b81ad750606c89516f5088a15dd (patch)
tree341c9d81c4833d5225842a54e6df5b0f6bcd7ee8
parent19ebb02deb40c1ee4793f0f23f425cb531178eaf (diff)
downloadsonarqube-5fcf6140f75e9b81ad750606c89516f5088a15dd.tar.gz
sonarqube-5fcf6140f75e9b81ad750606c89516f5088a15dd.zip
SONAR-5334 SONAR-5209 Defer loading of translation message (messages not available during requirejs initialization)
-rw-r--r--sonar-server/src/main/coffee/component-viewer/main.coffee2
-rw-r--r--sonar-server/src/main/coffee/component-viewer/models/period.coffee1
2 files changed, 1 insertions, 2 deletions
diff --git a/sonar-server/src/main/coffee/component-viewer/main.coffee b/sonar-server/src/main/coffee/component-viewer/main.coffee
index a8db19334cb..6a7ea195a0c 100644
--- a/sonar-server/src/main/coffee/component-viewer/main.coffee
+++ b/sonar-server/src/main/coffee/component-viewer/main.coffee
@@ -160,7 +160,7 @@ define [
if full
# Periods
- @periods.reset [{}]
+ @periods.reset [{label: t('none')}]
data.periods.forEach (p) =>
d = new Date p[2]
d.setHours 0, 0, 0, 0
diff --git a/sonar-server/src/main/coffee/component-viewer/models/period.coffee b/sonar-server/src/main/coffee/component-viewer/models/period.coffee
index e2faaa4c664..3b7a73b9369 100644
--- a/sonar-server/src/main/coffee/component-viewer/models/period.coffee
+++ b/sonar-server/src/main/coffee/component-viewer/models/period.coffee
@@ -9,5 +9,4 @@ define [
defaults:
key: ''
- label: t 'none'
sinceDate: null