[all] send action data to sdk

This commit is contained in:
Julia Radzhabova 2019-03-18 14:48:10 +03:00
parent 2f5951aaaf
commit cee89671b6
3 changed files with 12 additions and 6 deletions

View file

@ -357,7 +357,9 @@ define([
this.permissions = $.extend(this.permissions, data.doc.permissions);
var _permissions = $.extend({}, data.doc.permissions),
_user = new Asc.asc_CUserInfo();
_options = $.extend({}, data.doc.options, {actions: this.editorConfig.actionLink || {}});
var _user = new Asc.asc_CUserInfo();
_user.put_Id(this.appOptions.user.id);
_user.put_FullName(this.appOptions.user.fullname);
@ -367,7 +369,7 @@ define([
docInfo.put_Title(data.doc.title);
docInfo.put_Format(data.doc.fileType);
docInfo.put_VKey(data.doc.vkey);
docInfo.put_Options(data.doc.options);
docInfo.put_Options(_options);
docInfo.put_UserInfo(_user);
docInfo.put_CallbackUrl(this.editorConfig.callbackUrl);
docInfo.put_Token(data.doc.token);

View file

@ -336,7 +336,9 @@ define([
this.permissions = $.extend(this.permissions, data.doc.permissions);
var _permissions = $.extend({}, data.doc.permissions),
_user = new Asc.asc_CUserInfo();
_options = $.extend({}, data.doc.options, {actions: this.editorConfig.actionLink || {}});
var _user = new Asc.asc_CUserInfo();
_user.put_Id(this.appOptions.user.id);
_user.put_FullName(this.appOptions.user.fullname);
@ -346,7 +348,7 @@ define([
docInfo.put_Title(data.doc.title);
docInfo.put_Format(data.doc.fileType);
docInfo.put_VKey(data.doc.vkey);
docInfo.put_Options(data.doc.options);
docInfo.put_Options(_options);
docInfo.put_UserInfo(_user);
docInfo.put_CallbackUrl(this.editorConfig.callbackUrl);
docInfo.put_Token(data.doc.token);

View file

@ -362,7 +362,9 @@ define([
this.permissions = _.extend(this.permissions, data.doc.permissions);
var _permissions = $.extend({}, data.doc.permissions),
_user = new Asc.asc_CUserInfo();
_options = $.extend({}, data.doc.options, {actions: this.editorConfig.actionLink || {}});
var _user = new Asc.asc_CUserInfo();
_user.put_Id(this.appOptions.user.id);
_user.put_FullName(this.appOptions.user.fullname);
@ -372,7 +374,7 @@ define([
docInfo.put_Title(data.doc.title);
docInfo.put_Format(data.doc.fileType);
docInfo.put_VKey(data.doc.vkey);
docInfo.put_Options(data.doc.options);
docInfo.put_Options(_options);
docInfo.put_UserInfo(_user);
docInfo.put_CallbackUrl(this.editorConfig.callbackUrl);
docInfo.put_Token(data.doc.token);