commit
e98c607d4c
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue