Commit 8ef6c1a4 authored by Dmitry.Shahtanov's avatar Dmitry.Shahtanov

исправлен лок именованных диапазонов, возникавший при любых изменениях не с ИД

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@65320 954022d7-b5bf-4e40-9824-e11837661b57
parent 894754d2
......@@ -2059,6 +2059,7 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS";
};
spreadsheet_api.prototype._onUpdateDefinedNames = function(lockElem) {
if( lockElem.Element.subType == c_oAscLockTypeElemSubType.DefinedNames ){
var dN = this.wbModel.dependencyFormulas.defNameList[lockElem.Element["rangeOrObjectId"]];
if (dN) {
dN.isLock = lockElem["UserId"];
......@@ -2066,6 +2067,7 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS";
}
this.handlers.trigger("asc_onLockDefNameManager",c_oAscDefinedNameReason.LockDefNameManager);
}
}
spreadsheet_api.prototype._onUnlockDefName = function() {
this.wb.unlockDefName();
......
......@@ -217,7 +217,8 @@ var c_oAscLockTypeElemSubType = {
InsertColumns: 2,
DeleteRows: 3,
InsertRows: 4,
ChangeProperties: 5
ChangeProperties: 5,
DefinedNames: 6
};
var c_oAscRecalcIndexTypes = {
......
......@@ -9090,7 +9090,7 @@
return;
}
var sheetId = this.model.getId();
var lockInfo = this.collaborativeEditing.getLockInfo(c_oAscLockTypeElem.Object, null, -1, defNameId);
var lockInfo = this.collaborativeEditing.getLockInfo(c_oAscLockTypeElem.Object, c_oAscLockTypeElemSubType.DefinedNames, -1, defNameId);
if (false === this.collaborativeEditing.getCollaborativeEditing()) {
// Пользователь редактирует один: не ждем ответа, а сразу продолжаем редактирование
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment