Merge pull request #545 from ONLYOFFICE/fix/bugfix

Fix Bug 47168
This commit is contained in:
Julia Radzhabova 2020-10-29 17:48:41 +03:00 committed by GitHub
commit 1e57135e18
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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',