Commit fecb02c8 authored by Dmitry.Shahtanov's avatar Dmitry.Shahtanov Committed by Alexander.Trofimov

для бага 30394

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@64941 954022d7-b5bf-4e40-9824-e11837661b57
parent 8570732b
...@@ -48,6 +48,8 @@ var c_oAscError = { ...@@ -48,6 +48,8 @@ var c_oAscError = {
FrmlParenthesesCorrectCount: -38, FrmlParenthesesCorrectCount: -38,
InvalidReferenceOrName: -40, InvalidReferenceOrName: -40,
LockCreateDefName: -41,
AutoFilterDataRangeError: -50, AutoFilterDataRangeError: -50,
AutoFilterChangeFormatTableError: -51, AutoFilterChangeFormatTableError: -51,
...@@ -326,5 +328,6 @@ var c_oAscDefinedNameReason = { ...@@ -326,5 +328,6 @@ var c_oAscDefinedNameReason = {
WrongName: -1, WrongName: -1,
IsLocked: -2, IsLocked: -2,
Existed: -3, Existed: -3,
LockDefNameManager:- 4,
OK: 0 OK: 0
}; };
\ No newline at end of file
...@@ -1988,6 +1988,7 @@ ...@@ -1988,6 +1988,7 @@
t.model.editDefinesNames(oldName, newName); t.model.editDefinesNames(oldName, newName);
t.handlers.trigger("asc_onEditDefName", oldName, newName); t.handlers.trigger("asc_onEditDefName", oldName, newName);
t.handlers.trigger("asc_onRefreshDefNameList"); t.handlers.trigger("asc_onRefreshDefNameList");
this.handlers.trigger("asc_onLockDefNameManager",c_oAscDefinedNameReason.LockDefNameManager);
selectNameChange(); selectNameChange();
} }
}; };
...@@ -1999,6 +2000,7 @@ ...@@ -1999,6 +2000,7 @@
else{ else{
this.handlers.trigger("asc_onDefName", this.model.editDefinesNames(oldName, newName)); this.handlers.trigger("asc_onDefName", this.model.editDefinesNames(oldName, newName));
this.handlers.trigger("asc_onRefreshDefNameList"); this.handlers.trigger("asc_onRefreshDefNameList");
this.handlers.trigger("asc_onLockDefNameManager",c_oAscDefinedNameReason.LockDefNameManager);
selectNameChange(); selectNameChange();
} }
...@@ -2039,6 +2041,7 @@ ...@@ -2039,6 +2041,7 @@
WorkbookView.prototype.unlockDefName = function () { WorkbookView.prototype.unlockDefName = function () {
this.model.unlockDefName(); this.model.unlockDefName();
this.handlers.trigger("asc_onRefreshDefNameList"); this.handlers.trigger("asc_onRefreshDefNameList");
this.handlers.trigger("asc_onLockDefNameManager",c_oAscDefinedNameReason.OK);
}; };
WorkbookView.prototype._onCheckDefNameLock = function () { WorkbookView.prototype._onCheckDefNameLock = function () {
......
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