Commit fd49f85a authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

Добавил константу для ошибки.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@59333 954022d7-b5bf-4e40-9824-e11837661b57
parent 4142dfbf
...@@ -289,6 +289,7 @@ ...@@ -289,6 +289,7 @@
this.attemptCount = 0; this.attemptCount = 0;
this.maxAttemptCount = 50; this.maxAttemptCount = 50;
this.reconnectInterval = 2000; this.reconnectInterval = 2000;
this.errorTimeOut = 10000;
this._docid = null; this._docid = null;
this._token = null; this._token = null;
...@@ -365,7 +366,7 @@ ...@@ -365,7 +366,7 @@
callback({error: "Timed out"}); callback({error: "Timed out"});
delete lockCalbacks[idLockInArray]; delete lockCalbacks[idLockInArray];
} }
}, 5000);//5 sec to signal lock failure }, this.errorTimeOut);
} }
if (this._isExcel) if (this._isExcel)
this._send({"type": "getLockRange", "block": arrayBlockId}); this._send({"type": "getLockRange", "block": arrayBlockId});
...@@ -417,7 +418,7 @@ ...@@ -417,7 +418,7 @@
//Not signaled already //Not signaled already
oTmpCallback({error: "Timed out"}); oTmpCallback({error: "Timed out"});
} }
}, 5000);//5 sec to signal lock failure }, this.errorTimeOut);
} }
this._send({"type": "isSaveLock"}); this._send({"type": "isSaveLock"});
}; };
...@@ -457,7 +458,7 @@ ...@@ -457,7 +458,7 @@
this.saveCallbackErrorTimeOutId = window.setTimeout(function () { this.saveCallbackErrorTimeOutId = window.setTimeout(function () {
t.saveCallbackErrorTimeOutId = null; t.saveCallbackErrorTimeOutId = null;
t._reSaveChanges(); t._reSaveChanges();
}, 5000); }, this.errorTimeOut);
this._send({"type": "saveChanges", "changes": JSON.stringify(arrayChanges.slice(startIndex, endIndex)), this._send({"type": "saveChanges", "changes": JSON.stringify(arrayChanges.slice(startIndex, endIndex)),
"startSaveChanges": (startIndex === 0), "endSaveChanges": (endIndex === arrayChanges.length), "startSaveChanges": (startIndex === 0), "endSaveChanges": (endIndex === arrayChanges.length),
......
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