Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
web-apps
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
web-apps
Commits
180c6fdc
Commit
180c6fdc
authored
Jul 06, 2016
by
Julia Radzhabova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change limitations for light version: hide version history, show plugins.
parent
fcecb0c6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
7 deletions
+5
-7
apps/documenteditor/main/app/controller/Main.js
apps/documenteditor/main/app/controller/Main.js
+4
-6
apps/spreadsheeteditor/main/app/controller/Main.js
apps/spreadsheeteditor/main/app/controller/Main.js
+1
-1
No files found.
apps/documenteditor/main/app/controller/Main.js
View file @
180c6fdc
...
...
@@ -829,11 +829,9 @@ define([
application
.
getController
(
'
Common.Controllers.ExternalDiagramEditor
'
).
setApi
(
this
.
api
).
loadConfig
({
config
:
this
.
editorConfig
,
customization
:
this
.
editorConfig
.
customization
});
application
.
getController
(
'
Common.Controllers.ExternalMergeEditor
'
).
setApi
(
this
.
api
).
loadConfig
({
config
:
this
.
editorConfig
,
customization
:
this
.
editorConfig
.
customization
});
if
(
!
me
.
appOptions
.
isLightVersion
)
{
pluginsController
.
setApi
(
me
.
api
);
me
.
updatePluginsList
(
me
.
plugins
);
me
.
api
.
asc_registerCallback
(
'
asc_onPluginsInit
'
,
_
.
bind
(
me
.
updatePluginsList
,
me
));
}
pluginsController
.
setApi
(
me
.
api
);
me
.
updatePluginsList
(
me
.
plugins
);
me
.
api
.
asc_registerCallback
(
'
asc_onPluginsInit
'
,
_
.
bind
(
me
.
updatePluginsList
,
me
));
documentHolderController
.
setApi
(
me
.
api
);
documentHolderController
.
createDelayedElements
();
...
...
@@ -941,7 +939,7 @@ define([
(
!
this
.
appOptions
.
isReviewOnly
||
this
.
appOptions
.
canLicense
);
// if isReviewOnly==true -> canLicense must be true
this
.
appOptions
.
isEdit
=
this
.
appOptions
.
canLicense
&&
this
.
appOptions
.
canEdit
&&
this
.
editorConfig
.
mode
!==
'
view
'
;
this
.
appOptions
.
canReview
=
this
.
appOptions
.
canLicense
&&
this
.
appOptions
.
isEdit
&&
(
this
.
permissions
.
review
===
true
);
this
.
appOptions
.
canUseHistory
=
this
.
appOptions
.
canLicense
&&
this
.
editorConfig
.
canUseHistory
&&
(
this
.
permissions
.
edit
!==
false
)
&&
this
.
appOptions
.
canCoAuthoring
&&
!
this
.
appOptions
.
isDesktopApp
;
this
.
appOptions
.
canUseHistory
=
this
.
appOptions
.
canLicense
&&
!
this
.
appOptions
.
isLightVersion
&&
this
.
editorConfig
.
canUseHistory
&&
(
this
.
permissions
.
edit
!==
false
)
&&
this
.
appOptions
.
canCoAuthoring
&&
!
this
.
appOptions
.
isDesktopApp
;
this
.
appOptions
.
canHistoryClose
=
this
.
editorConfig
.
canHistoryClose
;
this
.
appOptions
.
canUseMailMerge
=
this
.
appOptions
.
canLicense
&&
this
.
appOptions
.
canEdit
&&
!
this
.
appOptions
.
isDesktopApp
;
this
.
appOptions
.
canSendEmailAddresses
=
this
.
appOptions
.
canLicense
&&
this
.
editorConfig
.
canSendEmailAddresses
&&
this
.
appOptions
.
canEdit
&&
this
.
appOptions
.
canCoAuthoring
;
...
...
apps/spreadsheeteditor/main/app/controller/Main.js
View file @
180c6fdc
...
...
@@ -593,7 +593,7 @@ define([
leftMenuView
.
getMenu
(
'
file
'
).
loadDocument
({
doc
:
me
.
appOptions
.
spreadsheet
});
leftmenuController
.
setMode
(
me
.
appOptions
).
createDelayedElements
().
setApi
(
me
.
api
);
if
(
!
me
.
appOptions
.
is
LightVersion
&&
!
me
.
appOptions
.
is
EditMailMerge
&&
!
me
.
appOptions
.
isEditDiagram
)
{
if
(
!
me
.
appOptions
.
isEditMailMerge
&&
!
me
.
appOptions
.
isEditDiagram
)
{
pluginsController
.
setApi
(
me
.
api
);
me
.
updatePluginsList
(
me
.
plugins
);
me
.
api
.
asc_registerCallback
(
'
asc_onPluginsInit
'
,
_
.
bind
(
me
.
updatePluginsList
,
me
));
...
...
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