Merge pull request #2135 from ONLYOFFICE/fix/fix-bugs

Fix/fix bugs
This commit is contained in:
Julia Radzhabova 2022-12-15 12:56:04 +03:00 committed by GitHub
commit e98c607d4c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 11 deletions

View file

@ -124,7 +124,7 @@ define([
for (var l = 0; l < text.length; l++) {
var charCode = text.charCodeAt(l),
char = text.charAt(l);
if (AscCommon.IsPunctuation(charCode) !== undefined || char.trim() === '') {
if (AscCommon.IsPunctuation(charCode) || char.trim() === '') {
isPunctuation = true;
break;
}

View file

@ -138,7 +138,7 @@ define([
for (var l = 0; l < text.length; l++) {
var charCode = text.charCodeAt(l),
char = text.charAt(l);
if (AscCommon.IsPunctuation(charCode) !== undefined || char.trim() === '') {
if (AscCommon.IsPunctuation(charCode) || char.trim() === '') {
isPunctuation = true;
break;
}

View file

@ -419,25 +419,25 @@ define([
querySavePrintSettings: function(print) {
if ( this.checkMargins(this.printSettings) ) {
var view = SSE.getController('Toolbar').getView('Toolbar');
this.savePageOptions(this.printSettings);
this._isPrint = print;
this.printSettings.applySettings();
if (print) {
var view = SSE.getController('Toolbar').getView('Toolbar');
var printType = this.printSettings.getRange();
this.adjPrintParams.asc_setPrintType(printType);
this.adjPrintParams.asc_setPageOptionsMap(this._changedProps);
this.adjPrintParams.asc_setIgnorePrintArea(this.printSettings.getIgnorePrintArea());
Common.localStorage.setItem("sse-print-settings-range", printType);
var printType = this.printSettings.getRange();
this.adjPrintParams.asc_setPrintType(printType);
this.adjPrintParams.asc_setPageOptionsMap(this._changedProps);
this.adjPrintParams.asc_setIgnorePrintArea(this.printSettings.getIgnorePrintArea());
Common.localStorage.setItem("sse-print-settings-range", printType);
if (print) {
var opts = new Asc.asc_CDownloadOptions(null, Common.Utils.isChrome || Common.Utils.isOpera || Common.Utils.isGecko && Common.Utils.firefoxVersion>86);
opts.asc_setAdvancedOptions(this.adjPrintParams);
this.api.asc_Print(opts);
Common.NotificationCenter.trigger('edit:complete', view);
this._isPrint = false;
}
Common.NotificationCenter.trigger('edit:complete', view);
}
},

View file

@ -446,7 +446,7 @@ define([
'<div class="sheet">' + (item[1] ? item[1] : '') + '</div>' +
'<div class="name">' + (item[2] ? item[2] : '') + '</div>' +
'<div class="cell">' + (item[3] ? item[3] : '') + '</div>' +
'<div class="value">' + (item[4] ? item[4] : '') + '</div>' +
'<div class="value">' + (item[4] ? Common.Utils.String.htmlEncode(item[4]) : '') + '</div>' +
'<div class="formula">' + (item[5] ? item[5] : '') + '</div>' +
'</div>';
var $item = $(tr).appendTo($innerResults);