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
a5e12726
Commit
a5e12726
authored
7 years ago
by
Alexander.Trofimov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
asc_getTrial -> asc_getLicenseMode
in server trial -> mode add Asc.c_oLicenseMode enum
parent
8d95511e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
7 deletions
+19
-7
common/Private/license.js
common/Private/license.js
+1
-1
common/apiCommon.js
common/apiCommon.js
+18
-6
No files found.
common/Private/license.js
View file @
a5e12726
...
...
@@ -40,7 +40,7 @@ AscCommon.baseEditorsApi.prototype._onEndPermissions = function () {
oResult
.
setLicenseType
(
type
);
oResult
.
setCanBranding
(
this
.
licenseResult
[
'
branding
'
]);
oResult
.
setIsLight
(
this
.
licenseResult
[
'
light
'
]);
oResult
.
set
Trial
(
this
.
licenseResult
[
'
trial
'
]);
oResult
.
set
LicenseMode
(
this
.
licenseResult
[
'
mode
'
]);
oResult
.
setRights
(
this
.
licenseResult
[
'
rights
'
]);
oResult
.
setBuildVersion
(
this
.
licenseResult
[
'
buildVersion
'
]);
oResult
.
setBuildNumber
(
this
.
licenseResult
[
'
buildNumber
'
]);
...
...
This diff is collapsed.
Click to expand it.
common/apiCommon.js
View file @
a5e12726
...
...
@@ -121,6 +121,12 @@
View
:
4
};
var
c_oLicenseMode
=
{
None
:
0
,
Trial
:
1
,
Developer
:
2
};
/** @constructor */
function
asc_CSignatureLine
()
{
...
...
@@ -163,8 +169,8 @@
*/
function
asc_CAscEditorPermissions
()
{
this
.
licenseType
=
c_oLicenseResult
.
Error
;
this
.
licenseMode
=
c_oLicenseMode
.
None
;
this
.
isLight
=
false
;
this
.
trial
=
false
;
this
.
rights
=
c_oRights
.
None
;
this
.
canCoAuthoring
=
true
;
...
...
@@ -202,8 +208,8 @@
asc_CAscEditorPermissions
.
prototype
.
asc_getIsLight
=
function
()
{
return
this
.
isLight
;
};
asc_CAscEditorPermissions
.
prototype
.
asc_get
Trial
=
function
()
{
return
this
.
trial
;
asc_CAscEditorPermissions
.
prototype
.
asc_get
LicenseMode
=
function
()
{
return
this
.
licenseMode
;
};
asc_CAscEditorPermissions
.
prototype
.
asc_getRights
=
function
()
{
return
this
.
rights
;
...
...
@@ -224,8 +230,8 @@
asc_CAscEditorPermissions
.
prototype
.
setIsLight
=
function
(
v
)
{
this
.
isLight
=
v
;
};
asc_CAscEditorPermissions
.
prototype
.
set
Trial
=
function
(
v
)
{
this
.
trial
=
v
;
asc_CAscEditorPermissions
.
prototype
.
set
LicenseMode
=
function
(
v
)
{
this
.
licenseMode
=
v
;
};
asc_CAscEditorPermissions
.
prototype
.
setRights
=
function
(
v
)
{
this
.
rights
=
v
;
...
...
@@ -3548,6 +3554,12 @@
prot
[
'
Comment
'
]
=
prot
.
Comment
;
prot
[
'
View
'
]
=
prot
.
View
;
window
[
'
Asc
'
][
'
c_oLicenseMode
'
]
=
window
[
'
Asc
'
].
c_oLicenseMode
=
c_oLicenseMode
;
prot
=
c_oLicenseMode
;
prot
[
'
None
'
]
=
prot
.
None
;
prot
[
'
Trial
'
]
=
prot
.
Trial
;
prot
[
'
Developer
'
]
=
prot
.
Developer
;
window
[
"
AscCommon
"
][
"
asc_CSignatureLine
"
]
=
window
[
"
AscCommon
"
].
asc_CSignatureLine
=
asc_CSignatureLine
;
prot
=
asc_CSignatureLine
.
prototype
;
prot
[
"
asc_getId
"
]
=
prot
.
asc_getId
;
...
...
@@ -3577,7 +3589,7 @@
prot
[
"
asc_getAutosaveMinInterval
"
]
=
prot
.
asc_getAutosaveMinInterval
;
prot
[
"
asc_getIsAnalyticsEnable
"
]
=
prot
.
asc_getIsAnalyticsEnable
;
prot
[
"
asc_getIsLight
"
]
=
prot
.
asc_getIsLight
;
prot
[
"
asc_get
Trial
"
]
=
prot
.
asc_getTrial
;
prot
[
"
asc_get
LicenseMode
"
]
=
prot
.
asc_getLicenseMode
;
prot
[
"
asc_getRights
"
]
=
prot
.
asc_getRights
;
prot
[
"
asc_getBuildVersion
"
]
=
prot
.
asc_getBuildVersion
;
prot
[
"
asc_getBuildNumber
"
]
=
prot
.
asc_getBuildNumber
;
...
...
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