]> source.dussan.org Git - sonarqube.git/commitdiff
fix widgets to not explicitly use l10n
authorStas Vilchik <vilchiks@gmail.com>
Mon, 11 Jan 2016 15:21:54 +0000 (16:21 +0100)
committerStas Vilchik <vilchiks@gmail.com>
Mon, 11 Jan 2016 15:21:54 +0000 (16:21 +0100)
server/sonar-server/src/main/resources/org/sonar/server/dashboard/widget/issue_filter.html.erb
server/sonar-server/src/main/resources/org/sonar/server/dashboard/widget/project_issue_filter.html.erb
server/sonar-web/src/main/js/widgets/old/tag-cloud.js

index 282b60f8dfc9fdf236b89dd2689ed10c6b2c7bb7..c228268bc23939d03d1b886359c71a2f5ff6b26c 100644 (file)
@@ -29,7 +29,7 @@
         }
 
         var IssueFilterWidget = window.IssueFilterWidget;
-        window.requestMessages().done(function () {
+        window.sonarqube.appStarted.then(function () {
           new IssueFilterWidget({
             el: '#<%= container_id -%>',
             query: query,
index 2525f01468caafd2324dad1a6d0381ca1f25d1ec..85ba4786417103a518b70fb86ee5f3f1e6c00188 100644 (file)
@@ -35,7 +35,7 @@
         }
 
         var IssueFilterWidget = window.IssueFilterWidget;
-        window.requestMessages().done(function () {
+        window.sonarqube.appStarted.then(function () {
           new IssueFilterWidget({
             el: '#<%= container_id -%>',
             query: query,
index bc7da015595300e63a0d86d9f9fff76b31f0da64..933c89c461cf23628e3f64752b26d5d4743b3c2e 100644 (file)
@@ -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) {