[SSE] Spellcheck: disable Next button when spellcheck is complete
This commit is contained in:
parent
ecc123f628
commit
6c39a8dbfa
|
@ -233,11 +233,12 @@ define([
|
||||||
this.panelSpellcheck.btnIgnore.setDisabled(!word || disabled);
|
this.panelSpellcheck.btnIgnore.setDisabled(!word || disabled);
|
||||||
this.panelSpellcheck.btnToDictionary.setDisabled(!word || disabled);
|
this.panelSpellcheck.btnToDictionary.setDisabled(!word || disabled);
|
||||||
this.panelSpellcheck.lblComplete.toggleClass('hidden', !property || !!word);
|
this.panelSpellcheck.lblComplete.toggleClass('hidden', !property || !!word);
|
||||||
|
this.panelSpellcheck.buttonNext.setDisabled(!this.panelSpellcheck.lblComplete.hasClass('hidden'));
|
||||||
},
|
},
|
||||||
|
|
||||||
onApiEditCell: function(state) {
|
onApiEditCell: function(state) {
|
||||||
if (state == Asc.c_oAscCellEditorState.editEnd) {
|
if (state == Asc.c_oAscCellEditorState.editEnd) {
|
||||||
this.panelSpellcheck.buttonNext.setDisabled(false);
|
this.panelSpellcheck.buttonNext.setDisabled(!this.panelSpellcheck.lblComplete.hasClass('hidden'));
|
||||||
this.panelSpellcheck.cmbDictionaryLanguage.setDisabled(false);
|
this.panelSpellcheck.cmbDictionaryLanguage.setDisabled(false);
|
||||||
} else {
|
} else {
|
||||||
this.panelSpellcheck.buttonNext.setDisabled(true);
|
this.panelSpellcheck.buttonNext.setDisabled(true);
|
||||||
|
|
Loading…
Reference in a new issue