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
8b8b9b66
Commit
8b8b9b66
authored
Feb 20, 2017
by
Alexey Golubev
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'hotfix/v4.2.10'
parents
5f3342c5
b353fd4b
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
18 additions
and
18 deletions
+18
-18
apps/documenteditor/embed/js/ApplicationController.js
apps/documenteditor/embed/js/ApplicationController.js
+4
-4
apps/documenteditor/main/app/controller/Main.js
apps/documenteditor/main/app/controller/Main.js
+2
-2
apps/presentationeditor/embed/js/ApplicationController.js
apps/presentationeditor/embed/js/ApplicationController.js
+4
-4
apps/presentationeditor/main/app/controller/Main.js
apps/presentationeditor/main/app/controller/Main.js
+2
-2
apps/spreadsheeteditor/embed/js/ApplicationController.js
apps/spreadsheeteditor/embed/js/ApplicationController.js
+4
-4
apps/spreadsheeteditor/main/app/controller/Main.js
apps/spreadsheeteditor/main/app/controller/Main.js
+2
-2
No files found.
apps/documenteditor/embed/js/ApplicationController.js
View file @
8b8b9b66
...
@@ -65,14 +65,14 @@ var ApplicationController = new(function(){
...
@@ -65,14 +65,14 @@ var ApplicationController = new(function(){
common
.
controller
.
modals
.
init
(
embedConfig
);
common
.
controller
.
modals
.
init
(
embedConfig
);
// Docked toolbar
// Docked toolbar
if
(
embedConfig
.
toolbarDocked
===
'
top
'
)
{
if
(
embedConfig
.
toolbarDocked
===
'
bottom
'
)
{
$
(
'
#toolbar
'
).
addClass
(
'
top
'
);
$
(
'
#editor_sdk
'
).
addClass
(
'
top
'
);
}
else
{
$
(
'
#toolbar
'
).
addClass
(
'
bottom
'
);
$
(
'
#toolbar
'
).
addClass
(
'
bottom
'
);
$
(
'
#editor_sdk
'
).
addClass
(
'
bottom
'
);
$
(
'
#editor_sdk
'
).
addClass
(
'
bottom
'
);
$
(
'
#box-tools
'
).
removeClass
(
'
dropdown
'
).
addClass
(
'
dropup
'
);
$
(
'
#box-tools
'
).
removeClass
(
'
dropdown
'
).
addClass
(
'
dropup
'
);
ttOffset
[
1
]
=
-
40
;
ttOffset
[
1
]
=
-
40
;
}
else
{
$
(
'
#toolbar
'
).
addClass
(
'
top
'
);
$
(
'
#editor_sdk
'
).
addClass
(
'
top
'
);
}
}
if
(
config
.
canBackToFolder
===
false
||
!
(
config
.
customization
&&
config
.
customization
.
goback
&&
config
.
customization
.
goback
.
url
))
{
if
(
config
.
canBackToFolder
===
false
||
!
(
config
.
customization
&&
config
.
customization
.
goback
&&
config
.
customization
.
goback
.
url
))
{
...
...
apps/documenteditor/main/app/controller/Main.js
View file @
8b8b9b66
...
@@ -998,8 +998,8 @@ define([
...
@@ -998,8 +998,8 @@ define([
this
.
appOptions
.
canHistoryRestore
=
this
.
editorConfig
.
canHistoryRestore
&&
!!
this
.
permissions
.
changeHistory
;
this
.
appOptions
.
canHistoryRestore
=
this
.
editorConfig
.
canHistoryRestore
&&
!!
this
.
permissions
.
changeHistory
;
this
.
appOptions
.
canUseMailMerge
=
this
.
appOptions
.
canLicense
&&
this
.
appOptions
.
canEdit
&&
!
this
.
appOptions
.
isDesktopApp
;
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
;
this
.
appOptions
.
canSendEmailAddresses
=
this
.
appOptions
.
canLicense
&&
this
.
editorConfig
.
canSendEmailAddresses
&&
this
.
appOptions
.
canEdit
&&
this
.
appOptions
.
canCoAuthoring
;
this
.
appOptions
.
canComments
=
(
licType
===
Asc
.
c_oLicenseResult
.
Success
)
&&
!
((
typeof
(
this
.
editorConfig
.
customization
)
==
'
object
'
)
&&
this
.
editorConfig
.
customization
.
comments
===
false
);
this
.
appOptions
.
canComments
=
(
licType
===
Asc
.
c_oLicenseResult
.
Success
||
licType
===
Asc
.
c_oLicenseResult
.
SuccessLimit
)
&&
!
((
typeof
(
this
.
editorConfig
.
customization
)
==
'
object
'
)
&&
this
.
editorConfig
.
customization
.
comments
===
false
);
this
.
appOptions
.
canChat
=
(
licType
===
Asc
.
c_oLicenseResult
.
Success
)
&&
!
this
.
appOptions
.
isOffline
&&
!
((
typeof
(
this
.
editorConfig
.
customization
)
==
'
object
'
)
&&
this
.
editorConfig
.
customization
.
chat
===
false
);
this
.
appOptions
.
canChat
=
(
licType
===
Asc
.
c_oLicenseResult
.
Success
||
licType
===
Asc
.
c_oLicenseResult
.
SuccessLimit
)
&&
!
this
.
appOptions
.
isOffline
&&
!
((
typeof
(
this
.
editorConfig
.
customization
)
==
'
object
'
)
&&
this
.
editorConfig
.
customization
.
chat
===
false
);
this
.
appOptions
.
canEditStyles
=
this
.
appOptions
.
canLicense
&&
this
.
appOptions
.
canEdit
;
this
.
appOptions
.
canEditStyles
=
this
.
appOptions
.
canLicense
&&
this
.
appOptions
.
canEdit
;
this
.
appOptions
.
canPrint
=
(
this
.
permissions
.
print
!==
false
);
this
.
appOptions
.
canPrint
=
(
this
.
permissions
.
print
!==
false
);
this
.
appOptions
.
canRename
=
!!
this
.
permissions
.
rename
;
this
.
appOptions
.
canRename
=
!!
this
.
permissions
.
rename
;
...
...
apps/presentationeditor/embed/js/ApplicationController.js
View file @
8b8b9b66
...
@@ -66,14 +66,14 @@ var ApplicationController = new(function(){
...
@@ -66,14 +66,14 @@ var ApplicationController = new(function(){
common
.
controller
.
modals
.
init
(
embedConfig
);
common
.
controller
.
modals
.
init
(
embedConfig
);
// Docked toolbar
// Docked toolbar
if
(
embedConfig
.
toolbarDocked
===
'
top
'
)
{
if
(
embedConfig
.
toolbarDocked
===
'
bottom
'
)
{
$
(
'
#toolbar
'
).
addClass
(
'
top
'
);
$
(
'
#editor_sdk
'
).
addClass
(
'
top
'
);
}
else
{
$
(
'
#toolbar
'
).
addClass
(
'
bottom
'
);
$
(
'
#toolbar
'
).
addClass
(
'
bottom
'
);
$
(
'
#editor_sdk
'
).
addClass
(
'
bottom
'
);
$
(
'
#editor_sdk
'
).
addClass
(
'
bottom
'
);
$
(
'
#box-tools
'
).
removeClass
(
'
dropdown
'
).
addClass
(
'
dropup
'
);
$
(
'
#box-tools
'
).
removeClass
(
'
dropdown
'
).
addClass
(
'
dropup
'
);
ttOffset
[
1
]
=
-
40
;
ttOffset
[
1
]
=
-
40
;
}
else
{
$
(
'
#toolbar
'
).
addClass
(
'
top
'
);
$
(
'
#editor_sdk
'
).
addClass
(
'
top
'
);
}
}
if
(
config
.
canBackToFolder
===
false
||
!
(
config
.
customization
&&
config
.
customization
.
goback
&&
config
.
customization
.
goback
.
url
))
{
if
(
config
.
canBackToFolder
===
false
||
!
(
config
.
customization
&&
config
.
customization
.
goback
&&
config
.
customization
.
goback
.
url
))
{
...
...
apps/presentationeditor/main/app/controller/Main.js
View file @
8b8b9b66
...
@@ -769,8 +769,8 @@ define([
...
@@ -769,8 +769,8 @@ define([
this
.
appOptions
.
isEdit
=
this
.
appOptions
.
canLicense
&&
this
.
appOptions
.
canEdit
&&
this
.
editorConfig
.
mode
!==
'
view
'
;
this
.
appOptions
.
isEdit
=
this
.
appOptions
.
canLicense
&&
this
.
appOptions
.
canEdit
&&
this
.
editorConfig
.
mode
!==
'
view
'
;
this
.
appOptions
.
canDownload
=
!
this
.
appOptions
.
nativeApp
&&
this
.
permissions
.
download
!==
false
;
this
.
appOptions
.
canDownload
=
!
this
.
appOptions
.
nativeApp
&&
this
.
permissions
.
download
!==
false
;
this
.
appOptions
.
canAnalytics
=
params
.
asc_getIsAnalyticsEnable
();
this
.
appOptions
.
canAnalytics
=
params
.
asc_getIsAnalyticsEnable
();
this
.
appOptions
.
canComments
=
(
licType
===
Asc
.
c_oLicenseResult
.
Success
)
&&
!
((
typeof
(
this
.
editorConfig
.
customization
)
==
'
object
'
)
&&
this
.
editorConfig
.
customization
.
comments
===
false
);
this
.
appOptions
.
canComments
=
(
licType
===
Asc
.
c_oLicenseResult
.
Success
||
licType
===
Asc
.
c_oLicenseResult
.
SuccessLimit
)
&&
!
((
typeof
(
this
.
editorConfig
.
customization
)
==
'
object
'
)
&&
this
.
editorConfig
.
customization
.
comments
===
false
);
this
.
appOptions
.
canChat
=
(
licType
===
Asc
.
c_oLicenseResult
.
Success
)
&&
!
this
.
appOptions
.
isOffline
&&
!
((
typeof
(
this
.
editorConfig
.
customization
)
==
'
object
'
)
&&
this
.
editorConfig
.
customization
.
chat
===
false
);
this
.
appOptions
.
canChat
=
(
licType
===
Asc
.
c_oLicenseResult
.
Success
||
licType
===
Asc
.
c_oLicenseResult
.
SuccessLimit
)
&&
!
this
.
appOptions
.
isOffline
&&
!
((
typeof
(
this
.
editorConfig
.
customization
)
==
'
object
'
)
&&
this
.
editorConfig
.
customization
.
chat
===
false
);
this
.
appOptions
.
canPrint
=
(
this
.
permissions
.
print
!==
false
);
this
.
appOptions
.
canPrint
=
(
this
.
permissions
.
print
!==
false
);
this
.
appOptions
.
canRename
=
!!
this
.
permissions
.
rename
;
this
.
appOptions
.
canRename
=
!!
this
.
permissions
.
rename
;
...
...
apps/spreadsheeteditor/embed/js/ApplicationController.js
View file @
8b8b9b66
...
@@ -72,14 +72,14 @@ var ApplicationController = new(function(){
...
@@ -72,14 +72,14 @@ var ApplicationController = new(function(){
$
(
'
#id-btn-close
'
).
hide
();
$
(
'
#id-btn-close
'
).
hide
();
// Docked toolbar
// Docked toolbar
if
(
embedConfig
.
toolbarDocked
===
'
top
'
)
{
if
(
embedConfig
.
toolbarDocked
===
'
bottom
'
)
{
$
(
'
#toolbar
'
).
addClass
(
'
top
'
);
$
(
'
.viewer
'
).
addClass
(
'
top
'
);
}
else
{
$
(
'
#toolbar
'
).
addClass
(
'
bottom
'
);
$
(
'
#toolbar
'
).
addClass
(
'
bottom
'
);
$
(
'
.viewer
'
).
addClass
(
'
bottom
'
);
$
(
'
.viewer
'
).
addClass
(
'
bottom
'
);
$
(
'
#box-tools
'
).
removeClass
(
'
dropdown
'
).
addClass
(
'
dropup
'
);
$
(
'
#box-tools
'
).
removeClass
(
'
dropdown
'
).
addClass
(
'
dropup
'
);
ttOffset
[
1
]
=
-
40
;
ttOffset
[
1
]
=
-
40
;
}
else
{
$
(
'
#toolbar
'
).
addClass
(
'
top
'
);
$
(
'
.viewer
'
).
addClass
(
'
top
'
);
}
}
}
}
...
...
apps/spreadsheeteditor/main/app/controller/Main.js
View file @
8b8b9b66
...
@@ -787,8 +787,8 @@ define([
...
@@ -787,8 +787,8 @@ define([
/** coauthoring begin **/
/** coauthoring begin **/
this
.
appOptions
.
canCoAuthoring
=
!
this
.
appOptions
.
isLightVersion
;
this
.
appOptions
.
canCoAuthoring
=
!
this
.
appOptions
.
isLightVersion
;
/** coauthoring end **/
/** coauthoring end **/
this
.
appOptions
.
canComments
=
(
licType
===
Asc
.
c_oLicenseResult
.
Success
)
&&
!
((
typeof
(
this
.
editorConfig
.
customization
)
==
'
object
'
)
&&
this
.
editorConfig
.
customization
.
comments
===
false
);
this
.
appOptions
.
canComments
=
(
licType
===
Asc
.
c_oLicenseResult
.
Success
||
licType
===
Asc
.
c_oLicenseResult
.
SuccessLimit
)
&&
!
((
typeof
(
this
.
editorConfig
.
customization
)
==
'
object
'
)
&&
this
.
editorConfig
.
customization
.
comments
===
false
);
this
.
appOptions
.
canChat
=
(
licType
===
Asc
.
c_oLicenseResult
.
Success
)
&&
!
this
.
appOptions
.
isOffline
&&
!
((
typeof
(
this
.
editorConfig
.
customization
)
==
'
object
'
)
&&
this
.
editorConfig
.
customization
.
chat
===
false
);
this
.
appOptions
.
canChat
=
(
licType
===
Asc
.
c_oLicenseResult
.
Success
||
licType
===
Asc
.
c_oLicenseResult
.
SuccessLimit
)
&&
!
this
.
appOptions
.
isOffline
&&
!
((
typeof
(
this
.
editorConfig
.
customization
)
==
'
object
'
)
&&
this
.
editorConfig
.
customization
.
chat
===
false
);
this
.
appOptions
.
canRename
=
!!
this
.
permissions
.
rename
;
this
.
appOptions
.
canRename
=
!!
this
.
permissions
.
rename
;
this
.
appOptions
.
canBranding
=
(
licType
===
Asc
.
c_oLicenseResult
.
Success
)
&&
(
typeof
this
.
editorConfig
.
customization
==
'
object
'
);
this
.
appOptions
.
canBranding
=
(
licType
===
Asc
.
c_oLicenseResult
.
Success
)
&&
(
typeof
this
.
editorConfig
.
customization
==
'
object
'
);
...
...
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