Fix Bug 47168

This commit is contained in:
Julia Radzhabova 2020-10-29 15:12:49 +03:00
parent bc62c31fe7
commit f833d75663
3 changed files with 15 additions and 6 deletions

View file

@ -631,15 +631,18 @@ define([
}, },
autoCorrect: function() { autoCorrect: function() {
if (this.dlgAutoCorrect && this.dlgAutoCorrect.isVisible()) return;
if (!this._mathCorrect) if (!this._mathCorrect)
this._mathCorrect = new Common.UI.DataViewStore(); this._mathCorrect = new Common.UI.DataViewStore();
if (!this._funcCorrect) if (!this._funcCorrect)
this._funcCorrect = new Common.UI.DataViewStore(); this._funcCorrect = new Common.UI.DataViewStore();
(new Common.Views.AutoCorrectDialog({ this.dlgAutoCorrect = new Common.Views.AutoCorrectDialog({
mathStore: this._mathCorrect, mathStore: this._mathCorrect,
functionsStore: this._funcCorrect, functionsStore: this._funcCorrect,
api: this.api api: this.api
})).show(); });
this.dlgAutoCorrect.show();
}, },
strLiveComment: 'Turn on option', strLiveComment: 'Turn on option',

View file

@ -543,15 +543,18 @@ define([
}, },
autoCorrect: function() { autoCorrect: function() {
if (this.dlgAutoCorrect && this.dlgAutoCorrect.isVisible()) return;
if (!this._mathCorrect) if (!this._mathCorrect)
this._mathCorrect = new Common.UI.DataViewStore(); this._mathCorrect = new Common.UI.DataViewStore();
if (!this._funcCorrect) if (!this._funcCorrect)
this._funcCorrect = new Common.UI.DataViewStore(); this._funcCorrect = new Common.UI.DataViewStore();
(new Common.Views.AutoCorrectDialog({ this.dlgAutoCorrect = new Common.Views.AutoCorrectDialog({
mathStore: this._mathCorrect, mathStore: this._mathCorrect,
functionsStore: this._funcCorrect, functionsStore: this._funcCorrect,
api: this.api api: this.api
})).show(); });
this.dlgAutoCorrect.show();
}, },
strInputMode: 'Turn on hieroglyphs', strInputMode: 'Turn on hieroglyphs',

View file

@ -1443,15 +1443,18 @@ define([
}, },
autoCorrect: function() { autoCorrect: function() {
if (this.dlgAutoCorrect && this.dlgAutoCorrect.isVisible()) return;
if (!this._mathCorrect) if (!this._mathCorrect)
this._mathCorrect = new Common.UI.DataViewStore(); this._mathCorrect = new Common.UI.DataViewStore();
if (!this._funcCorrect) if (!this._funcCorrect)
this._funcCorrect = new Common.UI.DataViewStore(); this._funcCorrect = new Common.UI.DataViewStore();
(new Common.Views.AutoCorrectDialog({ this.dlgAutoCorrect = new Common.Views.AutoCorrectDialog({
mathStore: this._mathCorrect, mathStore: this._mathCorrect,
functionsStore: this._funcCorrect, functionsStore: this._funcCorrect,
api: this.api api: this.api
})).show(); });
this.dlgAutoCorrect.show();
}, },
strIgnoreWordsInUPPERCASE: 'Ignore words in UPPERCASE', strIgnoreWordsInUPPERCASE: 'Ignore words in UPPERCASE',