Skip to content

Commit

Permalink
Merge pull request #2927 from ONLYOFFICE/fix/bugfix
Browse files Browse the repository at this point in the history
Fix Bug 67348
  • Loading branch information
JuliaRadzhabova authored Apr 10, 2024
2 parents ea2817f + 72b8350 commit c1d7c8b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,9 @@ define([
me.api.asc_DownloadAs(new Asc.asc_CDownloadOptions(Asc.c_oAscFileType.PDF));
else {
me.isFromBtnDownload = me.appOptions.canRequestSaveAs || !!me.appOptions.saveAsUrl;
me.api.asc_DownloadAs(new Asc.asc_CDownloadOptions(Asc.c_oAscFileType.PDF, me.isFromBtnDownload));
var options = new Asc.asc_CDownloadOptions(Asc.c_oAscFileType.PDF, me.isFromBtnDownload);
options.asc_setIsSaveAs(me.isFromBtnDownload);
me.api.asc_DownloadAs(options);
}
}
});
Expand Down Expand Up @@ -1115,8 +1117,11 @@ define([
var type = /^(?:(djvu|xps|oxps))$/.exec(this.document.fileType);
if (type && typeof type[1] === 'string')
this.api.asc_DownloadOrigin(true);
else
this.api.asc_DownloadAs(new Asc.asc_CDownloadOptions(Asc.c_oAscFileType.DOCX, true));
else {
var options = new Asc.asc_CDownloadOptions(Asc.c_oAscFileType.DOCX, true);
options.asc_setIsSaveAs(true);
this.api.asc_DownloadAs(options);
}
},

onHyperlinkClick: function(url) {
Expand Down
1 change: 1 addition & 0 deletions apps/spreadsheeteditor/main/app/controller/Print.js
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,7 @@ define([
} else {
var opts = new Asc.asc_CDownloadOptions(this.downloadFormat, this.asUrl);
opts.asc_setAdvancedOptions(this.adjPrintParams);
opts.asc_setIsSaveAs(this.asUrl);
this.api.asc_DownloadAs(opts);
}
Common.component.Analytics.trackEvent((this.printSettingsDlg.type=='print') ? 'Print' : 'DownloadAs');
Expand Down

0 comments on commit c1d7c8b

Please sign in to comment.