diff --git a/apps/spreadsheeteditor/main/app/controller/LeftMenu.js b/apps/spreadsheeteditor/main/app/controller/LeftMenu.js index 9325c24b8..b7d2a778c 100644 --- a/apps/spreadsheeteditor/main/app/controller/LeftMenu.js +++ b/apps/spreadsheeteditor/main/app/controller/LeftMenu.js @@ -262,9 +262,9 @@ define([ } }, this) }); - // } else if (format == Asc.c_oAscFileType.PDF) { - // menu.hide(); - // Common.NotificationCenter.trigger('download:settings', this.leftMenu); + } else if (format == Asc.c_oAscFileType.PDF) { + menu.hide(); + Common.NotificationCenter.trigger('download:settings', this.leftMenu); } else { this.api.asc_DownloadAs(format); menu.hide(); diff --git a/apps/spreadsheeteditor/main/app/controller/Main.js b/apps/spreadsheeteditor/main/app/controller/Main.js index 1da261a88..324789bbe 100644 --- a/apps/spreadsheeteditor/main/app/controller/Main.js +++ b/apps/spreadsheeteditor/main/app/controller/Main.js @@ -412,9 +412,9 @@ define([ if ( !_format || _supported.indexOf(_format) < 0 ) _format = Asc.c_oAscFileType.XLSX; - // if (_format == Asc.c_oAscFileType.PDF) - // Common.NotificationCenter.trigger('download:settings', this, true); - // else + if (_format == Asc.c_oAscFileType.PDF) + Common.NotificationCenter.trigger('download:settings', this, true); + else this.api.asc_DownloadAs(_format, true); }, diff --git a/apps/spreadsheeteditor/main/app/controller/Toolbar.js b/apps/spreadsheeteditor/main/app/controller/Toolbar.js index 0656df7ea..1abe81872 100644 --- a/apps/spreadsheeteditor/main/app/controller/Toolbar.js +++ b/apps/spreadsheeteditor/main/app/controller/Toolbar.js @@ -107,9 +107,9 @@ define([ if ( !_format || _supported.indexOf(_format) < 0 ) _format = Asc.c_oAscFileType.PDF; - // if (_format == Asc.c_oAscFileType.PDF) - // Common.NotificationCenter.trigger('download:settings', this.toolbar); - // else + if (_format == Asc.c_oAscFileType.PDF) + Common.NotificationCenter.trigger('download:settings', this.toolbar); + else _main.api.asc_DownloadAs(_format); }, 'go:editor': function() {