Added "token" parameter to api config.

This commit is contained in:
Julia Radzhabova 2016-11-24 16:44:54 +03:00
parent fe0026bc30
commit e82da5ebab
7 changed files with 8 additions and 0 deletions

View file

@ -336,6 +336,8 @@
window.alert("The \"document.key\" parameter for the config object must be string. Please correct it.");
return false;
}
_config.document.token = _config.token;
}
return true;

View file

@ -96,6 +96,7 @@ var ApplicationController = new(function(){
docInfo.put_Title(docConfig.title);
docInfo.put_Format(docConfig.fileType);
docInfo.put_VKey(docConfig.vkey);
docInfo.put_Token(docConfig.token);
if (api) {
api.asc_registerCallback('asc_onGetEditorPermissions', onEditorPermissions);

View file

@ -285,6 +285,7 @@ define([
docInfo.put_Options(data.doc.options);
docInfo.put_UserInfo(_user);
docInfo.put_CallbackUrl(this.editorConfig.callbackUrl);
docInfo.put_Token(data.doc.token);
// docInfo.put_Review(this.permissions.review);
// docInfo.put_OfflineApp(this.editorConfig.nativeApp === true); // used in sdk for testing
}

View file

@ -97,6 +97,7 @@ var ApplicationController = new(function(){
docInfo.put_Title(docConfig.title);
docInfo.put_Format(docConfig.fileType);
docInfo.put_VKey(docConfig.vkey);
docInfo.put_Token(docConfig.token);
if (api) {
api.asc_registerCallback('asc_onGetEditorPermissions', onEditorPermissions);

View file

@ -273,6 +273,7 @@ define([
docInfo.put_Options(data.doc.options);
docInfo.put_UserInfo(_user);
docInfo.put_CallbackUrl(this.editorConfig.callbackUrl);
docInfo.put_Token(data.doc.token);
//docInfo.put_OfflineApp(this.editorConfig.nativeApp === true);
}

View file

@ -95,6 +95,7 @@ var ApplicationController = new(function(){
docInfo.put_Title(docConfig.title);
docInfo.put_Format(docConfig.fileType);
docInfo.put_VKey(docConfig.vkey);
docInfo.put_Token(docConfig.token);
if (api) {
api.asc_registerCallback('asc_onGetEditorPermissions', onEditorPermissions);

View file

@ -307,6 +307,7 @@ define([
docInfo.put_Options(data.doc.options);
docInfo.put_UserInfo(_user);
docInfo.put_CallbackUrl(this.editorConfig.callbackUrl);
docInfo.put_Token(data.doc.token);
this.headerView.setDocumentCaption(data.doc.title);
}