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
f9ec65e5
Commit
f9ec65e5
authored
Aug 31, 2016
by
Alexander.Trofimov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
delete unused
setCanLicense, asc_getCanLicense, canLicense
parent
c802188c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
10 deletions
+0
-10
common/Local/license.js
common/Local/license.js
+0
-1
common/Private/license.js
common/Private/license.js
+0
-1
common/apiCommon.js
common/apiCommon.js
+0
-8
No files found.
common/Local/license.js
View file @
f9ec65e5
...
@@ -38,7 +38,6 @@ AscCommon.baseEditorsApi.prototype._onEndPermissions = function()
...
@@ -38,7 +38,6 @@ AscCommon.baseEditorsApi.prototype._onEndPermissions = function()
{
{
var
oResult
=
new
AscCommon
.
asc_CAscEditorPermissions
();
var
oResult
=
new
AscCommon
.
asc_CAscEditorPermissions
();
oResult
.
setLicenseType
(
Asc
.
c_oLicenseResult
.
Success
);
oResult
.
setLicenseType
(
Asc
.
c_oLicenseResult
.
Success
);
oResult
.
setCanLicense
(
true
);
oResult
.
setCanBranding
(
true
);
oResult
.
setCanBranding
(
true
);
this
.
sendEvent
(
'
asc_onGetEditorPermissions
'
,
oResult
);
this
.
sendEvent
(
'
asc_onGetEditorPermissions
'
,
oResult
);
}
}
...
...
common/Private/license.js
View file @
f9ec65e5
...
@@ -38,7 +38,6 @@ AscCommon.baseEditorsApi.prototype._onEndPermissions = function () {
...
@@ -38,7 +38,6 @@ AscCommon.baseEditorsApi.prototype._onEndPermissions = function () {
if
(
null
!==
this
.
licenseResult
)
{
if
(
null
!==
this
.
licenseResult
)
{
var
type
=
this
.
licenseResult
[
'
type
'
];
var
type
=
this
.
licenseResult
[
'
type
'
];
oResult
.
setLicenseType
(
type
);
oResult
.
setLicenseType
(
type
);
oResult
.
setCanLicense
(
Asc
.
c_oLicenseResult
.
Success
===
type
);
oResult
.
setCanBranding
(
Asc
.
c_oLicenseResult
.
Error
!==
type
);
// Для тех, у кого есть лицензия, branding доступен
oResult
.
setCanBranding
(
Asc
.
c_oLicenseResult
.
Error
!==
type
);
// Для тех, у кого есть лицензия, branding доступен
oResult
.
setIsLight
(
this
.
licenseResult
[
'
light
'
]);
oResult
.
setIsLight
(
this
.
licenseResult
[
'
light
'
]);
}
}
...
...
common/apiCommon.js
View file @
f9ec65e5
...
@@ -120,7 +120,6 @@
...
@@ -120,7 +120,6 @@
*/
*/
function
asc_CAscEditorPermissions
()
{
function
asc_CAscEditorPermissions
()
{
this
.
licenseType
=
c_oLicenseResult
.
Error
;
this
.
licenseType
=
c_oLicenseResult
.
Error
;
this
.
canLicense
=
false
;
this
.
isLight
=
false
;
this
.
isLight
=
false
;
this
.
canCoAuthoring
=
true
;
this
.
canCoAuthoring
=
true
;
this
.
canReaderMode
=
true
;
this
.
canReaderMode
=
true
;
...
@@ -134,9 +133,6 @@
...
@@ -134,9 +133,6 @@
asc_CAscEditorPermissions
.
prototype
.
asc_getLicenseType
=
function
()
{
asc_CAscEditorPermissions
.
prototype
.
asc_getLicenseType
=
function
()
{
return
this
.
licenseType
;
return
this
.
licenseType
;
};
};
asc_CAscEditorPermissions
.
prototype
.
asc_getCanLicense
=
function
()
{
return
this
.
canLicense
;
};
asc_CAscEditorPermissions
.
prototype
.
asc_getCanCoAuthoring
=
function
()
{
asc_CAscEditorPermissions
.
prototype
.
asc_getCanCoAuthoring
=
function
()
{
return
this
.
canCoAuthoring
;
return
this
.
canCoAuthoring
;
};
};
...
@@ -162,9 +158,6 @@
...
@@ -162,9 +158,6 @@
asc_CAscEditorPermissions
.
prototype
.
setLicenseType
=
function
(
v
)
{
asc_CAscEditorPermissions
.
prototype
.
setLicenseType
=
function
(
v
)
{
this
.
licenseType
=
v
;
this
.
licenseType
=
v
;
};
};
asc_CAscEditorPermissions
.
prototype
.
setCanLicense
=
function
(
v
)
{
this
.
canLicense
=
v
;
};
asc_CAscEditorPermissions
.
prototype
.
setCanBranding
=
function
(
v
)
{
asc_CAscEditorPermissions
.
prototype
.
setCanBranding
=
function
(
v
)
{
this
.
canBranding
=
v
;
this
.
canBranding
=
v
;
};
};
...
@@ -2685,7 +2678,6 @@
...
@@ -2685,7 +2678,6 @@
window
[
"
AscCommon
"
].
asc_CAscEditorPermissions
=
asc_CAscEditorPermissions
;
window
[
"
AscCommon
"
].
asc_CAscEditorPermissions
=
asc_CAscEditorPermissions
;
prot
=
asc_CAscEditorPermissions
.
prototype
;
prot
=
asc_CAscEditorPermissions
.
prototype
;
prot
[
"
asc_getLicenseType
"
]
=
prot
.
asc_getLicenseType
;
prot
[
"
asc_getLicenseType
"
]
=
prot
.
asc_getLicenseType
;
prot
[
"
asc_getCanLicense
"
]
=
prot
.
asc_getCanLicense
;
prot
[
"
asc_getCanCoAuthoring
"
]
=
prot
.
asc_getCanCoAuthoring
;
prot
[
"
asc_getCanCoAuthoring
"
]
=
prot
.
asc_getCanCoAuthoring
;
prot
[
"
asc_getCanReaderMode
"
]
=
prot
.
asc_getCanReaderMode
;
prot
[
"
asc_getCanReaderMode
"
]
=
prot
.
asc_getCanReaderMode
;
prot
[
"
asc_getCanBranding
"
]
=
prot
.
asc_getCanBranding
;
prot
[
"
asc_getCanBranding
"
]
=
prot
.
asc_getCanBranding
;
...
...
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