From: Stas Vilchik Date: Mon, 11 Jan 2016 15:21:54 +0000 (+0100) Subject: fix widgets to not explicitly use l10n X-Git-Tag: 5.4-M4~3 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9f3b75975d8308cd2aaa77bed6c1544ebdbcb865;p=sonarqube.git fix widgets to not explicitly use l10n --- 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) {