diff --git a/apps/common/main/lib/controller/ReviewChanges.js b/apps/common/main/lib/controller/ReviewChanges.js index d6cc032ad..35b2ea923 100644 --- a/apps/common/main/lib/controller/ReviewChanges.js +++ b/apps/common/main/lib/controller/ReviewChanges.js @@ -532,6 +532,7 @@ define([ setLanguages: function (array) { this.langs = array; + this.view.btnDocLang.setDisabled(this.langs.length<1); }, onDocLanguage: function() { diff --git a/apps/common/main/lib/view/ReviewChanges.js b/apps/common/main/lib/view/ReviewChanges.js index 79ae74c4e..4f02ed587 100644 --- a/apps/common/main/lib/view/ReviewChanges.js +++ b/apps/common/main/lib/view/ReviewChanges.js @@ -541,7 +541,8 @@ define([ this.btnDocLang = new Common.UI.Button({ cls: 'btn-toolbar x-huge icon-top', iconCls: 'btn-ic-doclang', - caption: this.txtDocLang + caption: this.txtDocLang, + disabled: true }); Common.NotificationCenter.on('app:ready', this.onAppReady.bind(this));