From 116e364efbeeac5780a6e3a8f22b5a59d3effcfa Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Wed, 16 Feb 2022 22:58:34 +0300 Subject: [PATCH] [DE] Fix Bug 55089 --- .../main/app/controller/LeftMenu.js | 26 +++++++++++-------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/apps/documenteditor/main/app/controller/LeftMenu.js b/apps/documenteditor/main/app/controller/LeftMenu.js index 700c1babea..fb8a037519 100644 --- a/apps/documenteditor/main/app/controller/LeftMenu.js +++ b/apps/documenteditor/main/app/controller/LeftMenu.js @@ -373,17 +373,21 @@ define([ } else if (format == Asc.c_oAscFileType.PDF || format == Asc.c_oAscFileType.PDFA) this._saveAsFormat(menu, format, ext); else { - Common.UI.warning({ - width: 600, - title: this.notcriticalErrorTitle, - msg: Common.Utils.String.format(this.warnDownloadAsPdf, fileType.toUpperCase()), - buttons: ['ok', 'cancel'], - callback: _.bind(function(btn){ - if (btn == 'ok') { - me._saveAsFormat(menu, format, ext, new AscCommon.asc_CTextParams(Asc.c_oAscTextAssociation.PlainLine)); - } - }, this) - }); + if (format == Asc.c_oAscFileType.TXT || format == Asc.c_oAscFileType.RTF) // don't show message about pdf/xps/oxps + me._saveAsFormat(menu, format, ext, new AscCommon.asc_CTextParams(Asc.c_oAscTextAssociation.PlainLine)); + else { + Common.UI.warning({ + width: 600, + title: this.notcriticalErrorTitle, + msg: Common.Utils.String.format(this.warnDownloadAsPdf, fileType.toUpperCase()), + buttons: ['ok', 'cancel'], + callback: _.bind(function(btn){ + if (btn == 'ok') { + me._saveAsFormat(menu, format, ext, new AscCommon.asc_CTextParams(Asc.c_oAscTextAssociation.PlainLine)); + } + }, this) + }); + } } } else this._saveAsFormat(menu, format, ext);