diff --git a/apps/common/main/lib/view/OpenDialog.js b/apps/common/main/lib/view/OpenDialog.js index 25497ec57..ea99166f3 100644 --- a/apps/common/main/lib/view/OpenDialog.js +++ b/apps/common/main/lib/view/OpenDialog.js @@ -74,7 +74,8 @@ define([ cls : 'open-dlg', contentTemplate : '', title : (options.type == Asc.c_oAscAdvancedOptionsID.DRM) ? t.txtTitleProtected : t.txtTitle.replace('%1', (options.type == Asc.c_oAscAdvancedOptionsID.CSV) ? 'CSV' : 'TXT'), - toolcallback : _.bind(t.onToolClose, t) + toolcallback : _.bind(t.onToolClose, t), + closeFile : false }, options); @@ -130,8 +131,11 @@ define([ '', '' ].join(''); diff --git a/apps/documenteditor/main/app/controller/Main.js b/apps/documenteditor/main/app/controller/Main.js index cca280fcf..aa863cb93 100644 --- a/apps/documenteditor/main/app/controller/Main.js +++ b/apps/documenteditor/main/app/controller/Main.js @@ -1921,7 +1921,7 @@ define([ }); } else if (type == Asc.c_oAscAdvancedOptionsID.DRM) { me._state.openDlg = new Common.Views.OpenDialog({ - closable: me.appOptions.canRequestClose, + closeFile: me.appOptions.canRequestClose, type: type, warning: !(me.appOptions.isDesktopApp && me.appOptions.isOffline), validatePwd: !!me._state.isDRM, diff --git a/apps/presentationeditor/main/app/controller/Main.js b/apps/presentationeditor/main/app/controller/Main.js index 6e6753df3..9133859ff 100644 --- a/apps/presentationeditor/main/app/controller/Main.js +++ b/apps/presentationeditor/main/app/controller/Main.js @@ -1765,7 +1765,7 @@ define([ me = this; if (type == Asc.c_oAscAdvancedOptionsID.DRM) { me._state.openDlg = new Common.Views.OpenDialog({ - closable: me.appOptions.canRequestClose, + closeFile: me.appOptions.canRequestClose, type: type, warning: !(me.appOptions.isDesktopApp && me.appOptions.isOffline), validatePwd: !!me._state.isDRM, diff --git a/apps/spreadsheeteditor/main/app/controller/Main.js b/apps/spreadsheeteditor/main/app/controller/Main.js index f42209bff..79756d220 100644 --- a/apps/spreadsheeteditor/main/app/controller/Main.js +++ b/apps/spreadsheeteditor/main/app/controller/Main.js @@ -1589,7 +1589,7 @@ define([ }); } else if (type == Asc.c_oAscAdvancedOptionsID.DRM) { me._state.openDlg = new Common.Views.OpenDialog({ - closable: me.appOptions.canRequestClose, + closeFile: me.appOptions.canRequestClose, type: type, warning: !(me.appOptions.isDesktopApp && me.appOptions.isOffline), validatePwd: !!me._state.isDRM,