From 3e4b5cb0d2c2fca2268851fb430f2f1335048add Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Tue, 1 Dec 2020 00:38:33 +0300 Subject: [PATCH] [Mobile] Fix Bug 47759 --- apps/documenteditor/mobile/app/controller/Main.js | 3 +++ apps/presentationeditor/mobile/app/controller/Main.js | 3 +++ apps/spreadsheeteditor/mobile/app/controller/Main.js | 3 +++ 3 files changed, 9 insertions(+) diff --git a/apps/documenteditor/mobile/app/controller/Main.js b/apps/documenteditor/mobile/app/controller/Main.js index 51cb46f04..1b8379f21 100644 --- a/apps/documenteditor/mobile/app/controller/Main.js +++ b/apps/documenteditor/mobile/app/controller/Main.js @@ -1308,7 +1308,10 @@ define([ var buttons = [{ text: 'OK', bold: true, + close: false, onClick: function () { + if (!me._state.openDlg) return; + $(me._state.openDlg).hasClass('modal-in') && uiApp.closeModal(me._state.openDlg); var password = $(me._state.openDlg).find('.modal-text-input[name="modal-password"]').val(); me.api.asc_setAdvancedOptions(type, new Asc.asc_CDRMAdvancedOptions(password)); diff --git a/apps/presentationeditor/mobile/app/controller/Main.js b/apps/presentationeditor/mobile/app/controller/Main.js index 54dd18f5c..30b2abc1a 100644 --- a/apps/presentationeditor/mobile/app/controller/Main.js +++ b/apps/presentationeditor/mobile/app/controller/Main.js @@ -1197,7 +1197,10 @@ define([ var buttons = [{ text: 'OK', bold: true, + close: false, onClick: function () { + if (!me._state.openDlg) return; + $(me._state.openDlg).hasClass('modal-in') && uiApp.closeModal(me._state.openDlg); var password = $(me._state.openDlg).find('.modal-text-input[name="modal-password"]').val(); me.api.asc_setAdvancedOptions(type, new Asc.asc_CDRMAdvancedOptions(password)); diff --git a/apps/spreadsheeteditor/mobile/app/controller/Main.js b/apps/spreadsheeteditor/mobile/app/controller/Main.js index d57e09c86..ae304ff46 100644 --- a/apps/spreadsheeteditor/mobile/app/controller/Main.js +++ b/apps/spreadsheeteditor/mobile/app/controller/Main.js @@ -1404,7 +1404,10 @@ define([ var buttons = [{ text: 'OK', bold: true, + close: false, onClick: function () { + if (!me._state.openDlg) return; + $(me._state.openDlg).hasClass('modal-in') && uiApp.closeModal(me._state.openDlg); var password = $(me._state.openDlg).find('.modal-text-input[name="modal-password"]').val(); me.api.asc_setAdvancedOptions(type, new Asc.asc_CDRMAdvancedOptions(password));