[DE] Fix protection

This commit is contained in:
Julia Radzhabova 2022-10-03 23:36:58 +03:00
parent 96cc66875e
commit 064fc09574

View file

@ -146,7 +146,7 @@ define([
btn = result; btn = result;
if (result == 'ok') { if (result == 'ok') {
if (me.api) { if (me.api) {
me.api.asc_setProtectedDocument(Asc.c_oAscEDocProtect.None, value && value.drmOptions ? value.drmOptions.asc_getPassword() : undefined); me.api.asc_setDocumentProtection(Asc.c_oAscEDocProtect.None, value && value.drmOptions ? value.drmOptions.asc_getPassword() : undefined);
} }
Common.NotificationCenter.trigger('edit:complete'); Common.NotificationCenter.trigger('edit:complete');
} }
@ -158,7 +158,7 @@ define([
win.show(); win.show();
} else { } else {
me.api.asc_setProtectedDocument(Asc.c_oAscEDocProtect.None); me.api.asc_setDocumentProtection(Asc.c_oAscEDocProtect.None);
} }
} }
}, },