[Mobile] Fix Bug 47759

This commit is contained in:
Julia Radzhabova 2020-12-01 00:38:33 +03:00
parent f482c4b62f
commit 3e4b5cb0d2
3 changed files with 9 additions and 0 deletions

View file

@ -1308,7 +1308,10 @@ define([
var buttons = [{ var buttons = [{
text: 'OK', text: 'OK',
bold: true, bold: true,
close: false,
onClick: function () { 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(); var password = $(me._state.openDlg).find('.modal-text-input[name="modal-password"]').val();
me.api.asc_setAdvancedOptions(type, new Asc.asc_CDRMAdvancedOptions(password)); me.api.asc_setAdvancedOptions(type, new Asc.asc_CDRMAdvancedOptions(password));

View file

@ -1197,7 +1197,10 @@ define([
var buttons = [{ var buttons = [{
text: 'OK', text: 'OK',
bold: true, bold: true,
close: false,
onClick: function () { 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(); var password = $(me._state.openDlg).find('.modal-text-input[name="modal-password"]').val();
me.api.asc_setAdvancedOptions(type, new Asc.asc_CDRMAdvancedOptions(password)); me.api.asc_setAdvancedOptions(type, new Asc.asc_CDRMAdvancedOptions(password));

View file

@ -1404,7 +1404,10 @@ define([
var buttons = [{ var buttons = [{
text: 'OK', text: 'OK',
bold: true, bold: true,
close: false,
onClick: function () { 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(); var password = $(me._state.openDlg).find('.modal-text-input[name="modal-password"]').val();
me.api.asc_setAdvancedOptions(type, new Asc.asc_CDRMAdvancedOptions(password)); me.api.asc_setAdvancedOptions(type, new Asc.asc_CDRMAdvancedOptions(password));