[SSE] For Bug 53952
This commit is contained in:
parent
dde0ad7023
commit
f01af017ad
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue