[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) {
if (result == 'ok') {
if (me.api) {
if (me.api.asc_checkActiveCellPassword(value.drmOptions.asc_getPassword())) {
callback && setTimeout(function() {
callback.apply(scope, args);
}, 1);
} else {
Common.UI.warning({
msg: me.errorWrongPassword,
callback: function() {
Common.NotificationCenter.trigger('edit:complete', me.toolbar);
}
});
}
me.api.asc_checkActiveCellPassword(value.drmOptions.asc_getPassword(), function(res) {
if (res) {
callback && setTimeout(function() {
callback.apply(scope, args);
}, 1);
} else {
Common.UI.warning({
msg: me.errorWrongPassword,
callback: function() {
Common.NotificationCenter.trigger('edit:complete', me.toolbar);
}
});
}
});
}
}
Common.NotificationCenter.trigger('edit:complete', me.toolbar);