mirror of
https://github.com/ONLYOFFICE/sdkjs.git
synced 2026-04-07 14:09:12 +08:00
_onReleaseLock на Excel и Presentation
git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@49091 954022d7-b5bf-4e40-9824-e11837661b57
This commit is contained in:
committed by
Alexander.Trofimov
parent
5b171ade40
commit
0550276b89
@ -500,12 +500,13 @@
|
||||
if (data["locks"]) {
|
||||
for (var block in data["locks"]) {
|
||||
if (data["locks"].hasOwnProperty(block)) {
|
||||
var lock = data["locks"][block];
|
||||
var lock = data["locks"][block],
|
||||
blockTmp = (this._isExcel) ? lock["block"]["guid"] : (this._isPresentation) ? lock["block"]["guid"] : lock["block"];
|
||||
if (lock !== null) {
|
||||
this._locks[lock["block"]] = {"state":0, "user":lock["user"], "time":lock["time"], "changes":lock["changes"], "block":lock["block"]};
|
||||
this._locks[blockTmp] = {"state":0, "user":lock["user"], "time":lock["time"], "changes":lock["changes"], "block":lock["block"]};
|
||||
if (this.onLocksReleased) {
|
||||
// false - user not save changes
|
||||
this.onLocksReleased(this._locks[lock["block"]], false);
|
||||
this.onLocksReleased(this._locks[blockTmp], false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user