[DE] Close File menu when download original file

This commit is contained in:
Julia Radzhabova 2022-02-11 18:05:13 +03:00
parent c33d67f792
commit ce86232347

View file

@ -368,9 +368,10 @@ define([
var me = this,
fileType = this.getApplication().getController('Main').document.fileType;
if ( /^pdf|xps|oxps|djvu$/.test(fileType)) {
if (format===undefined)
if (format===undefined) {
this._saveAsFormat(undefined, format, ext); // download original
else if (format == Asc.c_oAscFileType.PDF || format == Asc.c_oAscFileType.PDFA)
menu && menu.hide();
} else if (format == Asc.c_oAscFileType.PDF || format == Asc.c_oAscFileType.PDFA)
this._saveAsFormat(menu, format, ext);
else {
(new Common.Views.OptionsDialog({