[SSE] Spellcheck: disable Next button when spellcheck is complete

This commit is contained in:
Julia Radzhabova 2019-08-20 14:17:04 +03:00
parent ecc123f628
commit 6c39a8dbfa

View file

@ -233,11 +233,12 @@ define([
this.panelSpellcheck.btnIgnore.setDisabled(!word || disabled);
this.panelSpellcheck.btnToDictionary.setDisabled(!word || disabled);
this.panelSpellcheck.lblComplete.toggleClass('hidden', !property || !!word);
this.panelSpellcheck.buttonNext.setDisabled(!this.panelSpellcheck.lblComplete.hasClass('hidden'));
},
onApiEditCell: function(state) {
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);
} else {
this.panelSpellcheck.buttonNext.setDisabled(true);