',
'<% if (type == Asc.c_oAscAdvancedOptionsID.DRM) { %>',
+ '<% if (warning) { %>',
'
',
'
',
'
' + t.txtProtected+ '
',
'',
'
',
'
',
+ '<% } else { %>',
+ '
',
+ '<% } %>',
'<% } else { %>',
'
',
'',
@@ -120,6 +128,7 @@ define([
this.handler = _options.handler;
this.type = _options.type;
this.preview = _options.preview;
+ this.warning = _options.warning || false;
this.closable = _options.closable;
this.codepages = _options.codepages;
this.settings = _options.settings;
diff --git a/apps/documenteditor/main/app/controller/Main.js b/apps/documenteditor/main/app/controller/Main.js
index b9190fa12..1ccb0a5de 100644
--- a/apps/documenteditor/main/app/controller/Main.js
+++ b/apps/documenteditor/main/app/controller/Main.js
@@ -1857,6 +1857,7 @@ define([
me._state.openDlg = new Common.Views.OpenDialog({
closable: me.appOptions.canRequestClose,
type: type,
+ warning: !(me.appOptions.isDesktopApp && me.appOptions.isOffline),
validatePwd: !!me._state.isDRM,
handler: function (result, value) {
me.isShowOpenDialog = false;
diff --git a/apps/presentationeditor/main/app/controller/Main.js b/apps/presentationeditor/main/app/controller/Main.js
index 1eca64551..c872fd5f7 100644
--- a/apps/presentationeditor/main/app/controller/Main.js
+++ b/apps/presentationeditor/main/app/controller/Main.js
@@ -1712,6 +1712,7 @@ define([
me._state.openDlg = new Common.Views.OpenDialog({
closable: me.appOptions.canRequestClose,
type: type,
+ warning: !(me.appOptions.isDesktopApp && me.appOptions.isOffline),
validatePwd: !!me._state.isDRM,
handler: function (result, value) {
me.isShowOpenDialog = false;
diff --git a/apps/spreadsheeteditor/main/app/controller/Main.js b/apps/spreadsheeteditor/main/app/controller/Main.js
index 3cdc62dc5..653f2a13b 100644
--- a/apps/spreadsheeteditor/main/app/controller/Main.js
+++ b/apps/spreadsheeteditor/main/app/controller/Main.js
@@ -1537,6 +1537,7 @@ define([
me._state.openDlg = new Common.Views.OpenDialog({
closable: me.appOptions.canRequestClose,
type: type,
+ warning: !(me.appOptions.isDesktopApp && me.appOptions.isOffline),
validatePwd: !!me._state.isDRM,
handler: function (result, value) {
me.isShowOpenDialog = false;