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
b353fd4b
Commit
b353fd4b
authored
Feb 17, 2017
by
Julia Radzhabova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Embedded] toolbarDocked = 'top' by default.
parent
dc96d4b5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
12 deletions
+12
-12
apps/documenteditor/embed/js/ApplicationController.js
apps/documenteditor/embed/js/ApplicationController.js
+4
-4
apps/presentationeditor/embed/js/ApplicationController.js
apps/presentationeditor/embed/js/ApplicationController.js
+4
-4
apps/spreadsheeteditor/embed/js/ApplicationController.js
apps/spreadsheeteditor/embed/js/ApplicationController.js
+4
-4
No files found.
apps/documenteditor/embed/js/ApplicationController.js
View file @
b353fd4b
...
...
@@ -65,14 +65,14 @@ var ApplicationController = new(function(){
common
.
controller
.
modals
.
init
(
embedConfig
);
// Docked toolbar
if
(
embedConfig
.
toolbarDocked
===
'
top
'
)
{
$
(
'
#toolbar
'
).
addClass
(
'
top
'
);
$
(
'
#editor_sdk
'
).
addClass
(
'
top
'
);
}
else
{
if
(
embedConfig
.
toolbarDocked
===
'
bottom
'
)
{
$
(
'
#toolbar
'
).
addClass
(
'
bottom
'
);
$
(
'
#editor_sdk
'
).
addClass
(
'
bottom
'
);
$
(
'
#box-tools
'
).
removeClass
(
'
dropdown
'
).
addClass
(
'
dropup
'
);
ttOffset
[
1
]
=
-
40
;
}
else
{
$
(
'
#toolbar
'
).
addClass
(
'
top
'
);
$
(
'
#editor_sdk
'
).
addClass
(
'
top
'
);
}
if
(
config
.
canBackToFolder
===
false
||
!
(
config
.
customization
&&
config
.
customization
.
goback
&&
config
.
customization
.
goback
.
url
))
{
...
...
apps/presentationeditor/embed/js/ApplicationController.js
View file @
b353fd4b
...
...
@@ -66,14 +66,14 @@ var ApplicationController = new(function(){
common
.
controller
.
modals
.
init
(
embedConfig
);
// Docked toolbar
if
(
embedConfig
.
toolbarDocked
===
'
top
'
)
{
$
(
'
#toolbar
'
).
addClass
(
'
top
'
);
$
(
'
#editor_sdk
'
).
addClass
(
'
top
'
);
}
else
{
if
(
embedConfig
.
toolbarDocked
===
'
bottom
'
)
{
$
(
'
#toolbar
'
).
addClass
(
'
bottom
'
);
$
(
'
#editor_sdk
'
).
addClass
(
'
bottom
'
);
$
(
'
#box-tools
'
).
removeClass
(
'
dropdown
'
).
addClass
(
'
dropup
'
);
ttOffset
[
1
]
=
-
40
;
}
else
{
$
(
'
#toolbar
'
).
addClass
(
'
top
'
);
$
(
'
#editor_sdk
'
).
addClass
(
'
top
'
);
}
if
(
config
.
canBackToFolder
===
false
||
!
(
config
.
customization
&&
config
.
customization
.
goback
&&
config
.
customization
.
goback
.
url
))
{
...
...
apps/spreadsheeteditor/embed/js/ApplicationController.js
View file @
b353fd4b
...
...
@@ -72,14 +72,14 @@ var ApplicationController = new(function(){
$
(
'
#id-btn-close
'
).
hide
();
// Docked toolbar
if
(
embedConfig
.
toolbarDocked
===
'
top
'
)
{
$
(
'
#toolbar
'
).
addClass
(
'
top
'
);
$
(
'
.viewer
'
).
addClass
(
'
top
'
);
}
else
{
if
(
embedConfig
.
toolbarDocked
===
'
bottom
'
)
{
$
(
'
#toolbar
'
).
addClass
(
'
bottom
'
);
$
(
'
.viewer
'
).
addClass
(
'
bottom
'
);
$
(
'
#box-tools
'
).
removeClass
(
'
dropdown
'
).
addClass
(
'
dropup
'
);
ttOffset
[
1
]
=
-
40
;
}
else
{
$
(
'
#toolbar
'
).
addClass
(
'
top
'
);
$
(
'
.viewer
'
).
addClass
(
'
top
'
);
}
}
...
...
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