Merge pull request #1142 from ONLYOFFICE/fix/bugfix

For Bug 49584
This commit is contained in:
Julia Radzhabova 2021-08-31 19:16:30 +03:00 committed by GitHub
commit eb46f4b8d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 5 deletions

View file

@ -113,7 +113,7 @@ define([ 'text!common/main/lib/template/AutoCorrectDialog.template',
var $window = this.getChild(); var $window = this.getChild();
var me = this; var me = this;
var panelAutoFormat = $window.find('#id-autocorrect-dialog-settings-' + this.appPrefix + 'autoformat'); var panelAutoFormat = $window.find('#id-autocorrect-dialog-settings-' + (this.appPrefix=='pe-' ? 'de-' : this.appPrefix) + 'autoformat');
// Math correct // Math correct
this.chReplaceType = new Common.UI.CheckBox({ this.chReplaceType = new Common.UI.CheckBox({
@ -358,7 +358,7 @@ define([ 'text!common/main/lib/template/AutoCorrectDialog.template',
var checked = (field.getValue()==='checked'); var checked = (field.getValue()==='checked');
Common.localStorage.setBool(me.appPrefix + "settings-autoformat-hyperlink", checked); Common.localStorage.setBool(me.appPrefix + "settings-autoformat-hyperlink", checked);
Common.Utils.InternalSettings.set(me.appPrefix + "settings-autoformat-hyperlink", checked); Common.Utils.InternalSettings.set(me.appPrefix + "settings-autoformat-hyperlink", checked);
me.api.asc_setAutoCorrectHyperlinks(checked); me.api.asc_SetAutoCorrectHyperlinks(checked);
}); });
this.btnsCategory[0].on('click', _.bind(this.onMathCategoryClick, this, false)); this.btnsCategory[0].on('click', _.bind(this.onMathCategoryClick, this, false));

View file

@ -2608,7 +2608,7 @@ define([
value = Common.localStorage.getBool("de-settings-autoformat-hyperlink", true); value = Common.localStorage.getBool("de-settings-autoformat-hyperlink", true);
Common.Utils.InternalSettings.set("de-settings-autoformat-hyperlink", value); Common.Utils.InternalSettings.set("de-settings-autoformat-hyperlink", value);
// me.api.asc_setAutoCorrectHyperlinks(value); me.api.asc_SetAutoCorrectHyperlinks(value);
}, },
showRenameUserDialog: function() { showRenameUserDialog: function() {

View file

@ -2230,7 +2230,7 @@ define([
value = Common.localStorage.getBool("pe-settings-autoformat-hyperlink", true); value = Common.localStorage.getBool("pe-settings-autoformat-hyperlink", true);
Common.Utils.InternalSettings.set("pe-settings-autoformat-hyperlink", value); Common.Utils.InternalSettings.set("pe-settings-autoformat-hyperlink", value);
// me.api.asc_setAutoCorrectHyperlinks(value); me.api.asc_SetAutoCorrectHyperlinks(value);
}, },
showRenameUserDialog: function() { showRenameUserDialog: function() {

View file

@ -2731,7 +2731,7 @@ define([
value = Common.localStorage.getBool("sse-settings-autoformat-hyperlink", true); value = Common.localStorage.getBool("sse-settings-autoformat-hyperlink", true);
Common.Utils.InternalSettings.set("sse-settings-autoformat-hyperlink", value); Common.Utils.InternalSettings.set("sse-settings-autoformat-hyperlink", value);
me.api.asc_setAutoCorrectHyperlinks(value); me.api.asc_SetAutoCorrectHyperlinks(value);
}, },
showRenameUserDialog: function() { showRenameUserDialog: function() {