Added "token" parameter to api config.
This commit is contained in:
parent
fe0026bc30
commit
e82da5ebab
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue