From 5a39e55c21c9994f8eb2b0a94cc0f5d8fbffa6fe Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Tue, 17 Apr 2018 13:38:26 +0300 Subject: [PATCH] [SSE] Hide options for export to pdf format (rev. https://github.com/ONLYOFFICE/web-apps-pro/commit/1aed6a07f5598b2a021637ec3d47b0ee91cf62f8) --- apps/spreadsheeteditor/main/app/controller/LeftMenu.js | 6 +++--- apps/spreadsheeteditor/main/app/controller/Main.js | 6 +++--- apps/spreadsheeteditor/main/app/controller/Toolbar.js | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/apps/spreadsheeteditor/main/app/controller/LeftMenu.js b/apps/spreadsheeteditor/main/app/controller/LeftMenu.js index b7d2a778c..9325c24b8 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 324789bbe..1da261a88 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 1abe81872..0656df7ea 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() {