[DE] Disable button for selecting language when the languages are not loaded.
This commit is contained in:
parent
76efc03e39
commit
6d8cceb6b2
|
@ -532,6 +532,7 @@ define([
|
|||
|
||||
setLanguages: function (array) {
|
||||
this.langs = array;
|
||||
this.view.btnDocLang.setDisabled(this.langs.length<1);
|
||||
},
|
||||
|
||||
onDocLanguage: function() {
|
||||
|
|
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue