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() {
if (this.dlgAutoCorrect && this.dlgAutoCorrect.isVisible()) return;
if (!this._mathCorrect)
this._mathCorrect = new Common.UI.DataViewStore();
if (!this._funcCorrect)
this._funcCorrect = new Common.UI.DataViewStore();
(new Common.Views.AutoCorrectDialog({
this.dlgAutoCorrect = new Common.Views.AutoCorrectDialog({
mathStore: this._mathCorrect,
functionsStore: this._funcCorrect,
api: this.api
})).show();
});
this.dlgAutoCorrect.show();
},
strLiveComment: 'Turn on option',

View file

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

View file

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