[SSE] For Bug 53952

This commit is contained in:
Julia Radzhabova 2021-11-22 19:44:20 +03:00
parent dde0ad7023
commit f01af017ad

View file

@ -2250,18 +2250,20 @@ define([
handler: function (result, value) { handler: function (result, value) {
if (result == 'ok') { if (result == 'ok') {
if (me.api) { if (me.api) {
if (me.api.asc_checkActiveCellPassword(value.drmOptions.asc_getPassword())) { me.api.asc_checkActiveCellPassword(value.drmOptions.asc_getPassword(), function(res) {
callback && setTimeout(function() { if (res) {
callback.apply(scope, args); callback && setTimeout(function() {
}, 1); callback.apply(scope, args);
} else { }, 1);
Common.UI.warning({ } else {
msg: me.errorWrongPassword, Common.UI.warning({
callback: function() { msg: me.errorWrongPassword,
Common.NotificationCenter.trigger('edit:complete', me.toolbar); callback: function() {
} Common.NotificationCenter.trigger('edit:complete', me.toolbar);
}); }
} });
}
});
} }
} }
Common.NotificationCenter.trigger('edit:complete', me.toolbar); Common.NotificationCenter.trigger('edit:complete', me.toolbar);