[DE][PE] Fix Bug 52335
This commit is contained in:
parent
9fa4a32813
commit
8c55b7cf64
|
@ -98,8 +98,11 @@
|
||||||
</div>
|
</div>
|
||||||
<div id="id-autocorrect-dialog-settings-autocorrect" class="settings-panel">
|
<div id="id-autocorrect-dialog-settings-autocorrect" class="settings-panel">
|
||||||
<div class="inner-content" style="width: 100%;">
|
<div class="inner-content" style="width: 100%;">
|
||||||
<div class="padding-large">
|
<div class="padding-small">
|
||||||
<div id="id-autocorrect-dialog-chk-fl-sentence"></div>
|
<div id="id-autocorrect-dialog-chk-fl-sentence"></div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="padding-large">
|
||||||
|
<div id="id-autocorrect-dialog-chk-fl-cells"></div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -337,6 +337,17 @@ define([ 'text!common/main/lib/template/AutoCorrectDialog.template',
|
||||||
me.api.asc_SetAutoCorrectFirstLetterOfSentences && me.api.asc_SetAutoCorrectFirstLetterOfSentences(checked);
|
me.api.asc_SetAutoCorrectFirstLetterOfSentences && me.api.asc_SetAutoCorrectFirstLetterOfSentences(checked);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
this.chFLCells = new Common.UI.CheckBox({
|
||||||
|
el: $window.find('#id-autocorrect-dialog-chk-fl-cells'),
|
||||||
|
labelText: this.textFLCells,
|
||||||
|
value: Common.Utils.InternalSettings.get(this.appPrefix + "settings-autoformat-fl-cells")
|
||||||
|
}).on('change', function(field, newValue, oldValue, eOpts){
|
||||||
|
var checked = (field.getValue()==='checked');
|
||||||
|
Common.localStorage.setBool(me.appPrefix + "settings-autoformat-fl-cells", checked);
|
||||||
|
Common.Utils.InternalSettings.set(me.appPrefix + "settings-autoformat-fl-cells", checked);
|
||||||
|
me.api.asc_SetAutoCorrectFirstLetterOfCells && me.api.asc_SetAutoCorrectFirstLetterOfCells(checked);
|
||||||
|
});
|
||||||
|
|
||||||
this.btnsCategory[3].on('click', _.bind(this.onAutocorrectCategoryClick, this, false));
|
this.btnsCategory[3].on('click', _.bind(this.onAutocorrectCategoryClick, this, false));
|
||||||
} else if (this.appPrefix=='sse-') {
|
} else if (this.appPrefix=='sse-') {
|
||||||
this.chNewRows = new Common.UI.CheckBox({
|
this.chNewRows = new Common.UI.CheckBox({
|
||||||
|
@ -384,7 +395,7 @@ define([ 'text!common/main/lib/template/AutoCorrectDialog.template',
|
||||||
this.chHyperlink // 2 tab
|
this.chHyperlink // 2 tab
|
||||||
];
|
];
|
||||||
arr = arr.concat(this.chNewRows ? [this.chNewRows] : [this.chQuotes, this.chHyphens, this.chBulleted, this.chNumbered]);
|
arr = arr.concat(this.chNewRows ? [this.chNewRows] : [this.chQuotes, this.chHyphens, this.chBulleted, this.chNumbered]);
|
||||||
arr = arr.concat(this.chFLSentence ? [this.chFLSentence] : []);
|
arr = arr.concat(this.chFLSentence ? [this.chFLSentence, this.chFLCells] : []);
|
||||||
return arr;
|
return arr;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -829,7 +840,8 @@ define([ 'text!common/main/lib/template/AutoCorrectDialog.template',
|
||||||
textNewRowCol: 'Include new rows and columns in table',
|
textNewRowCol: 'Include new rows and columns in table',
|
||||||
textAutoCorrect: 'AutoCorrect',
|
textAutoCorrect: 'AutoCorrect',
|
||||||
textFLSentence: 'Capitalize first letter of sentences',
|
textFLSentence: 'Capitalize first letter of sentences',
|
||||||
textHyperlink: 'Internet and network paths with hyperlinks'
|
textHyperlink: 'Internet and network paths with hyperlinks',
|
||||||
|
textFLCells: 'Capitalize first letter of table cells'
|
||||||
|
|
||||||
}, Common.Views.AutoCorrectDialog || {}))
|
}, Common.Views.AutoCorrectDialog || {}))
|
||||||
});
|
});
|
||||||
|
|
|
@ -2611,6 +2611,10 @@ 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);
|
||||||
|
|
||||||
|
value = Common.localStorage.getBool("de-settings-autoformat-fl-cells", true);
|
||||||
|
Common.Utils.InternalSettings.set("de-settings-autoformat-fl-cells", value);
|
||||||
|
me.api.asc_SetAutoCorrectFirstLetterOfCells(value);
|
||||||
},
|
},
|
||||||
|
|
||||||
showRenameUserDialog: function() {
|
showRenameUserDialog: function() {
|
||||||
|
|
|
@ -233,6 +233,7 @@
|
||||||
"Common.Views.AutoCorrectDialog.warnReplace": "The autocorrect entry for %1 already exists. Do you want to replace it?",
|
"Common.Views.AutoCorrectDialog.warnReplace": "The autocorrect entry for %1 already exists. Do you want to replace it?",
|
||||||
"Common.Views.AutoCorrectDialog.warnReset": "Any autocorrect you added will be removed and the changed ones will be restored to their original values. Do you want to continue?",
|
"Common.Views.AutoCorrectDialog.warnReset": "Any autocorrect you added will be removed and the changed ones will be restored to their original values. Do you want to continue?",
|
||||||
"Common.Views.AutoCorrectDialog.warnRestore": "The autocorrect entry for %1 will be reset to its original value. Do you want to continue?",
|
"Common.Views.AutoCorrectDialog.warnRestore": "The autocorrect entry for %1 will be reset to its original value. Do you want to continue?",
|
||||||
|
"Common.Views.AutoCorrectDialog.textFLCells": "Capitalize first letter of table cells",
|
||||||
"Common.Views.Chat.textSend": "Send",
|
"Common.Views.Chat.textSend": "Send",
|
||||||
"Common.Views.Comments.mniAuthorAsc": "Author A to Z",
|
"Common.Views.Comments.mniAuthorAsc": "Author A to Z",
|
||||||
"Common.Views.Comments.mniAuthorDesc": "Author Z to A",
|
"Common.Views.Comments.mniAuthorDesc": "Author Z to A",
|
||||||
|
|
|
@ -2233,6 +2233,10 @@ 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);
|
||||||
|
|
||||||
|
value = Common.localStorage.getBool("pe-settings-autoformat-fl-cells", true);
|
||||||
|
Common.Utils.InternalSettings.set("pe-settings-autoformat-fl-cells", value);
|
||||||
|
me.api.asc_SetAutoCorrectFirstLetterOfCells && me.api.asc_SetAutoCorrectFirstLetterOfCells(value);
|
||||||
},
|
},
|
||||||
|
|
||||||
showRenameUserDialog: function() {
|
showRenameUserDialog: function() {
|
||||||
|
|
|
@ -126,6 +126,7 @@
|
||||||
"Common.Views.AutoCorrectDialog.warnReplace": "The autocorrect entry for %1 already exists. Do you want to replace it?",
|
"Common.Views.AutoCorrectDialog.warnReplace": "The autocorrect entry for %1 already exists. Do you want to replace it?",
|
||||||
"Common.Views.AutoCorrectDialog.warnReset": "Any autocorrect you added will be removed and the changed ones will be restored to their original values. Do you want to continue?",
|
"Common.Views.AutoCorrectDialog.warnReset": "Any autocorrect you added will be removed and the changed ones will be restored to their original values. Do you want to continue?",
|
||||||
"Common.Views.AutoCorrectDialog.warnRestore": "The autocorrect entry for %1 will be reset to its original value. Do you want to continue?",
|
"Common.Views.AutoCorrectDialog.warnRestore": "The autocorrect entry for %1 will be reset to its original value. Do you want to continue?",
|
||||||
|
"Common.Views.AutoCorrectDialog.textFLCells": "Capitalize first letter of table cells",
|
||||||
"Common.Views.Chat.textSend": "Send",
|
"Common.Views.Chat.textSend": "Send",
|
||||||
"Common.Views.Comments.mniAuthorAsc": "Author A to Z",
|
"Common.Views.Comments.mniAuthorAsc": "Author A to Z",
|
||||||
"Common.Views.Comments.mniAuthorDesc": "Author Z to A",
|
"Common.Views.Comments.mniAuthorDesc": "Author Z to A",
|
||||||
|
|
Loading…
Reference in a new issue