Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sdkjs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
sdkjs
Commits
4be74e88
Commit
4be74e88
authored
8 years ago
by
Alexander.Trofimov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add trial (developer mode)
parent
2440e20b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
common/Private/license.js
common/Private/license.js
+1
-0
common/apiCommon.js
common/apiCommon.js
+8
-0
No files found.
common/Private/license.js
View file @
4be74e88
...
...
@@ -40,6 +40,7 @@ AscCommon.baseEditorsApi.prototype._onEndPermissions = function () {
oResult
.
setLicenseType
(
type
);
oResult
.
setCanBranding
(
Asc
.
c_oLicenseResult
.
Error
!==
type
);
// Для тех, у кого есть лицензия, branding доступен
oResult
.
setIsLight
(
this
.
licenseResult
[
'
light
'
]);
oResult
.
setIsTrial
(
this
.
licenseResult
[
'
trial
'
]);
}
this
.
sendEvent
(
'
asc_onGetEditorPermissions
'
,
oResult
);
}
...
...
This diff is collapsed.
Click to expand it.
common/apiCommon.js
View file @
4be74e88
...
...
@@ -121,6 +121,7 @@
function
asc_CAscEditorPermissions
()
{
this
.
licenseType
=
c_oLicenseResult
.
Error
;
this
.
isLight
=
false
;
this
.
trial
=
false
;
this
.
canCoAuthoring
=
true
;
this
.
canReaderMode
=
true
;
this
.
canBranding
=
false
;
...
...
@@ -154,6 +155,9 @@
asc_CAscEditorPermissions
.
prototype
.
asc_getIsLight
=
function
()
{
return
this
.
isLight
;
};
asc_CAscEditorPermissions
.
prototype
.
asc_getTrial
=
function
()
{
return
this
.
trial
;
};
asc_CAscEditorPermissions
.
prototype
.
setLicenseType
=
function
(
v
)
{
this
.
licenseType
=
v
;
...
...
@@ -164,6 +168,9 @@
asc_CAscEditorPermissions
.
prototype
.
setIsLight
=
function
(
v
)
{
this
.
isLight
=
v
;
};
asc_CAscEditorPermissions
.
prototype
.
setIsTrial
=
function
(
v
)
{
this
.
trial
=
v
;
};
/** @constructor */
function
asc_ValAxisSettings
()
{
...
...
@@ -2686,6 +2693,7 @@
prot
[
"
asc_getAutosaveMinInterval
"
]
=
prot
.
asc_getAutosaveMinInterval
;
prot
[
"
asc_getIsAnalyticsEnable
"
]
=
prot
.
asc_getIsAnalyticsEnable
;
prot
[
"
asc_getIsLight
"
]
=
prot
.
asc_getIsLight
;
prot
[
"
asc_getTrial
"
]
=
prot
.
asc_getTrial
;
window
[
"
AscCommon
"
].
asc_ValAxisSettings
=
asc_ValAxisSettings
;
prot
=
asc_ValAxisSettings
.
prototype
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment