From ce86232347c995f66328bea83e86b19f023fda30 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Fri, 11 Feb 2022 18:05:13 +0300 Subject: [PATCH] [DE] Close File menu when download original file --- apps/documenteditor/main/app/controller/LeftMenu.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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({