[SSE] Init languages on left panel show
This commit is contained in:
parent
73f9000472
commit
0c5a5e890c
|
@ -54,7 +54,7 @@ define([
|
||||||
this.addListeners({
|
this.addListeners({
|
||||||
'Spellcheck': {
|
'Spellcheck': {
|
||||||
'show': function() {
|
'show': function() {
|
||||||
me.loadLanguages();
|
me._initSettings && me.loadLanguages();
|
||||||
},
|
},
|
||||||
'hide': function() {
|
'hide': function() {
|
||||||
}
|
}
|
||||||
|
@ -70,6 +70,7 @@ define([
|
||||||
});
|
});
|
||||||
this.panelSpellcheck.on('render:after', _.bind(this.onAfterRender, this));
|
this.panelSpellcheck.on('render:after', _.bind(this.onAfterRender, this));
|
||||||
this._isDisabled = false;
|
this._isDisabled = false;
|
||||||
|
this._initSettings = true;
|
||||||
},
|
},
|
||||||
|
|
||||||
setApi: function(api) {
|
setApi: function(api) {
|
||||||
|
@ -116,6 +117,7 @@ define([
|
||||||
|
|
||||||
setLanguages: function (array) {
|
setLanguages: function (array) {
|
||||||
this.languages = array;
|
this.languages = array;
|
||||||
|
this._initSettings = true;
|
||||||
},
|
},
|
||||||
|
|
||||||
loadLanguages: function () {
|
loadLanguages: function () {
|
||||||
|
@ -160,6 +162,7 @@ define([
|
||||||
combo.setDisabled(true);
|
combo.setDisabled(true);
|
||||||
}
|
}
|
||||||
this.api.asc_setDefaultLanguage(value);
|
this.api.asc_setDefaultLanguage(value);
|
||||||
|
this._initSettings = false;
|
||||||
},
|
},
|
||||||
|
|
||||||
onSelectLanguage: function (combo, record) {
|
onSelectLanguage: function (combo, record) {
|
||||||
|
|
Loading…
Reference in a new issue