[DE] Close File menu when download original file
This commit is contained in:
parent
c33d67f792
commit
ce86232347
|
@ -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({
|
||||
|
|
Loading…
Reference in a new issue