[DE] Disable button for selecting language when the languages are not loaded.

This commit is contained in:
Julia Radzhabova 2017-04-25 16:17:55 +03:00
parent 76efc03e39
commit 6d8cceb6b2
2 changed files with 3 additions and 1 deletions

View file

@ -532,6 +532,7 @@ define([
setLanguages: function (array) {
this.langs = array;
this.view.btnDocLang.setDisabled(this.langs.length<1);
},
onDocLanguage: function() {

View file

@ -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));