diff --git a/apps/documenteditor/main/app/controller/LeftMenu.js b/apps/documenteditor/main/app/controller/LeftMenu.js index 2773fb5eb..59c2df39d 100644 --- a/apps/documenteditor/main/app/controller/LeftMenu.js +++ b/apps/documenteditor/main/app/controller/LeftMenu.js @@ -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({