Commit 2520b1ea authored by konovalovsergey's avatar konovalovsergey Committed by Alexander.Trofimov

versionHistory один documentId для команд auth и open

parent f3ecd310
......@@ -174,6 +174,9 @@ baseEditorsApi.prototype.asc_setDocInfo = function(oDocInfo) {
this.User = new AscCommon.asc_CUser();
this.User.setId(this.DocInfo.get_UserId());
this.User.setUserName(this.DocInfo.get_UserName());
//чтобы в versionHistory был один documentId для auth и open
this.CoAuthoringApi.setDocId(this.documentId);
}
if (undefined !== window["AscDesktopEditor"] && offlineMode != this.documentUrl) {
......
......@@ -120,6 +120,11 @@
}
return undefined;
};
CDocsCoApi.prototype.setDocId = function(docId) {
if (this._CoAuthoringApi) {
return this._CoAuthoringApi.setDocId(docId)
}
};
CDocsCoApi.prototype.auth = function(isViewer, opt_openCmd) {
if (this._CoAuthoringApi && this._onlineWork) {
......@@ -1160,6 +1165,10 @@
DocsCoApi.prototype.getDocId = function() {
return this._docid;
};
DocsCoApi.prototype.setDocId = function(docId) {
//todo возможно надо менять sockjs_url
this._docid = docId;
};
// Авторизация (ее нужно делать после выставления состояния редактора view-mode)
DocsCoApi.prototype.auth = function(isViewer, opt_openCmd) {
this.isAuthInit = true;
......
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