From 975f66a66aeaf1b0341d439296ea9159dd89841e Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Tue, 9 Oct 2018 14:32:18 +0300 Subject: [PATCH] [Embedded] Fix Bug 39251 --- apps/documenteditor/embed/js/ApplicationController.js | 7 ++++++- apps/presentationeditor/embed/js/ApplicationController.js | 7 ++++++- apps/spreadsheeteditor/embed/js/ApplicationController.js | 7 ++++++- 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/apps/documenteditor/embed/js/ApplicationController.js b/apps/documenteditor/embed/js/ApplicationController.js index ddff08fb35..0ff8adb81f 100644 --- a/apps/documenteditor/embed/js/ApplicationController.js +++ b/apps/documenteditor/embed/js/ApplicationController.js @@ -392,6 +392,10 @@ var ApplicationController = new(function(){ message = me.downloadErrorText; break; + case Asc.c_oAscError.ID.ConvertationPassword: + message = me.errorFilePassProtect; + break; + default: message = me.errorDefaultMessage.replace('%1', id); break; @@ -536,6 +540,7 @@ var ApplicationController = new(function(){ downloadErrorText : 'Download failed.', criticalErrorTitle : 'Error', notcriticalErrorTitle : 'Warning', - scriptLoadError: 'The connection is too slow, some of the components could not be loaded. Please reload the page.' + scriptLoadError: 'The connection is too slow, some of the components could not be loaded. Please reload the page.', + errorFilePassProtect: 'The file is password protected and cannot be opened.' } })(); \ No newline at end of file diff --git a/apps/presentationeditor/embed/js/ApplicationController.js b/apps/presentationeditor/embed/js/ApplicationController.js index 788d131cc3..8c43b731f0 100644 --- a/apps/presentationeditor/embed/js/ApplicationController.js +++ b/apps/presentationeditor/embed/js/ApplicationController.js @@ -491,6 +491,10 @@ var ApplicationController = new(function(){ message = me.downloadErrorText; break; + case Asc.c_oAscError.ID.ConvertationPassword: + message = me.errorFilePassProtect; + break; + default: message = me.errorDefaultMessage.replace('%1', id); break; @@ -606,6 +610,7 @@ var ApplicationController = new(function(){ downloadErrorText : 'Download failed.', criticalErrorTitle : 'Error', notcriticalErrorTitle : 'Warning', - scriptLoadError: 'The connection is too slow, some of the components could not be loaded. Please reload the page.' + scriptLoadError: 'The connection is too slow, some of the components could not be loaded. Please reload the page.', + errorFilePassProtect: 'The file is password protected and cannot be opened.' } })(); diff --git a/apps/spreadsheeteditor/embed/js/ApplicationController.js b/apps/spreadsheeteditor/embed/js/ApplicationController.js index 5309958937..7f02ad1c9d 100644 --- a/apps/spreadsheeteditor/embed/js/ApplicationController.js +++ b/apps/spreadsheeteditor/embed/js/ApplicationController.js @@ -399,6 +399,10 @@ var ApplicationController = new(function(){ message = me.downloadErrorText; break; + case Asc.c_oAscError.ID.ConvertationPassword: + message = me.errorFilePassProtect; + break; + default: message = me.errorDefaultMessage.replace('%1', id); break; @@ -553,6 +557,7 @@ var ApplicationController = new(function(){ downloadErrorText : 'Download failed.', criticalErrorTitle : 'Error', notcriticalErrorTitle : 'Warning', - scriptLoadError: 'The connection is too slow, some of the components could not be loaded. Please reload the page.' + scriptLoadError: 'The connection is too slow, some of the components could not be loaded. Please reload the page.', + errorFilePassProtect: 'The file is password protected and cannot be opened.' } })(); \ No newline at end of file