mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-27 03:46:53 +08:00
[SSE] For Bug 53952
This commit is contained in:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user