aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2016-01-11 16:21:54 +0100
committerStas Vilchik <vilchiks@gmail.com>2016-01-11 16:21:54 +0100
commit9f3b75975d8308cd2aaa77bed6c1544ebdbcb865 (patch)
treed057d8e800ba79a1b2331da6d87098e1f08619e3 /server
parent4c9844af6bbd204893cfd70b13a795fcf57787dc (diff)
downloadsonarqube-9f3b75975d8308cd2aaa77bed6c1544ebdbcb865.tar.gz
sonarqube-9f3b75975d8308cd2aaa77bed6c1544ebdbcb865.zip
fix widgets to not explicitly use l10n
Diffstat (limited to 'server')
-rw-r--r--server/sonar-server/src/main/resources/org/sonar/server/dashboard/widget/issue_filter.html.erb2
-rw-r--r--server/sonar-server/src/main/resources/org/sonar/server/dashboard/widget/project_issue_filter.html.erb2
-rw-r--r--server/sonar-web/src/main/js/widgets/old/tag-cloud.js2
3 files changed, 3 insertions, 3 deletions
diff --git a/server/sonar-server/src/main/resources/org/sonar/server/dashboard/widget/issue_filter.html.erb b/server/sonar-server/src/main/resources/org/sonar/server/dashboard/widget/issue_filter.html.erb
index 282b60f8dfc..c228268bc23 100644
--- a/server/sonar-server/src/main/resources/org/sonar/server/dashboard/widget/issue_filter.html.erb
+++ b/server/sonar-server/src/main/resources/org/sonar/server/dashboard/widget/issue_filter.html.erb
@@ -29,7 +29,7 @@
}
var IssueFilterWidget = window.IssueFilterWidget;
- window.requestMessages().done(function () {
+ window.sonarqube.appStarted.then(function () {
new IssueFilterWidget({
el: '#<%= container_id -%>',
query: query,
diff --git a/server/sonar-server/src/main/resources/org/sonar/server/dashboard/widget/project_issue_filter.html.erb b/server/sonar-server/src/main/resources/org/sonar/server/dashboard/widget/project_issue_filter.html.erb
index 2525f01468c..85ba4786417 100644
--- a/server/sonar-server/src/main/resources/org/sonar/server/dashboard/widget/project_issue_filter.html.erb
+++ b/server/sonar-server/src/main/resources/org/sonar/server/dashboard/widget/project_issue_filter.html.erb
@@ -35,7 +35,7 @@
}
var IssueFilterWidget = window.IssueFilterWidget;
- window.requestMessages().done(function () {
+ window.sonarqube.appStarted.then(function () {
new IssueFilterWidget({
el: '#<%= container_id -%>',
query: query,
diff --git a/server/sonar-web/src/main/js/widgets/old/tag-cloud.js b/server/sonar-web/src/main/js/widgets/old/tag-cloud.js
index bc7da015595..933c89c461c 100644
--- a/server/sonar-web/src/main/js/widgets/old/tag-cloud.js
+++ b/server/sonar-web/src/main/js/widgets/old/tag-cloud.js
@@ -37,7 +37,7 @@ import { translate } from '../../helpers/l10n';
TagCloud.prototype.renderWords = function () {
var that = this;
- return window.requestMessages().done(function () {
+ return window.sonarqube.appStarted.then(function () {
var words = that.wordContainer.selectAll('.cloud-word').data(that.tags()),
wordsEnter = words.enter().append('a').classed('cloud-word', true);
wordsEnter.text(function (d) {