Commit 0ca55c66 authored by Alexey.Golubev's avatar Alexey.Golubev Committed by Alexander.Trofimov

Добавил свойство возвращаемое с сервера canBranding.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@48737 954022d7-b5bf-4e40-9824-e11837661b57
parent e9d0e4d4
......@@ -4,6 +4,7 @@ function CAscEditorPermissions()
this.canDownload = true;
this.canCoAuthoring = true;
this.canReaderMode = true;
this.canBranding = true;
this.isAutosaveEnable = true;
this.AutosaveMinInterval = 300;
}
......@@ -11,6 +12,7 @@ CAscEditorPermissions.prototype.asc_getCanEdit = function(){ return this.canEdit
CAscEditorPermissions.prototype.asc_getCanDownload = function(){ return this.canDownload; }
CAscEditorPermissions.prototype.asc_getCanCoAuthoring = function(){ return this.canCoAuthoring; }
CAscEditorPermissions.prototype.asc_getCanReaderMode = function(){ return this.canReaderMode; }
CAscEditorPermissions.prototype.asc_getCanBranding = function(v){ return this.canBranding; }
CAscEditorPermissions.prototype.asc_getIsAutosaveEnable = function(){ return this.isAutosaveEnable; }
CAscEditorPermissions.prototype.asc_getAutosaveMinInterval = function(){ return this.AutosaveMinInterval; }
......@@ -18,5 +20,6 @@ CAscEditorPermissions.prototype.asc_setCanEdit = function(v){ this.canEdit = v;
CAscEditorPermissions.prototype.asc_setCanDownload = function(v){ this.canDownload = v; }
CAscEditorPermissions.prototype.asc_setCanCoAuthoring = function(v){ this.canCoAuthoring = v; }
CAscEditorPermissions.prototype.asc_setCanReaderMode = function(v){ this.canReaderMode = v; }
CAscEditorPermissions.prototype.asc_setCanBranding = function(v){ this.canBranding = v; }
CAscEditorPermissions.prototype.asc_setIsAutosaveEnable = function(v){ this.isAutosaveEnable = v; }
CAscEditorPermissions.prototype.asc_setAutosaveMinInterval = function(v){ this.AutosaveMinInterval = v; }
\ No newline at end of file
......@@ -755,6 +755,7 @@ asc_docs_api.prototype.asc_getEditorPermissionsCallback = function(incomeObject)
oEditorPermissions.asc_setCanDownload(oSettings["canDownload"]);
oEditorPermissions.asc_setCanCoAuthoring(oSettings["canCoAuthoring"]);
oEditorPermissions.asc_setCanReaderMode(oSettings["canReaderMode"]);
oEditorPermissions.asc_setCanBranding(oSettings["canBranding"]);
oEditorPermissions.asc_setIsAutosaveEnable(oSettings["isAutosaveEnable"]);
oEditorPermissions.asc_setAutosaveMinInterval(oSettings["AutosaveMinInterval"]);
......
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