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
4e72c53a
Commit
4e72c53a
authored
Sep 13, 2016
by
Julia Radzhabova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Load initial value for compact toolbar from editor config.
parent
428bddd0
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
5 deletions
+7
-5
apps/api/documents/api.js
apps/api/documents/api.js
+2
-1
apps/documenteditor/main/app/view/Toolbar.js
apps/documenteditor/main/app/view/Toolbar.js
+2
-2
apps/presentationeditor/main/app/view/Toolbar.js
apps/presentationeditor/main/app/view/Toolbar.js
+1
-1
apps/spreadsheeteditor/main/app/view/Toolbar.js
apps/spreadsheeteditor/main/app/view/Toolbar.js
+2
-1
No files found.
apps/api/documents/api.js
View file @
4e72c53a
...
...
@@ -106,7 +106,8 @@
},
chat: false,
comments: false,
zoom: 100
zoom: 100,
compactToolbar: false
},
plugins: {
url: '../../../../sdkjs-plugins/',
...
...
apps/documenteditor/main/app/view/Toolbar.js
View file @
4e72c53a
...
...
@@ -983,7 +983,7 @@ define([
this
.
btnPageMargins
.
menu
.
items
[
0
].
setVisible
(
false
);
var
value
=
Common
.
localStorage
.
getItem
(
"
de-compact-toolbar
"
);
var
valueCompact
=
(
value
!==
null
&&
parseInt
(
value
)
==
1
);
var
valueCompact
=
!!
(
value
!==
null
&&
parseInt
(
value
)
==
1
||
value
===
null
&&
mode
.
customization
&&
mode
.
customization
.
compactToolbar
);
me
.
$el
.
html
(
this
.
template
({
isCompactView
:
valueCompact
...
...
@@ -1406,7 +1406,7 @@ define([
/**/
var
mode
=
this
.
mode
;
var
value
=
Common
.
localStorage
.
getItem
(
"
de-compact-toolbar
"
);
var
valueCompact
=
(
value
!==
null
&&
parseInt
(
value
)
==
1
);
var
valueCompact
=
!!
(
value
!==
null
&&
parseInt
(
value
)
==
1
||
value
===
null
&&
this
.
mode
.
customization
&&
this
.
mode
.
customization
.
compactToolbar
);
value
=
Common
.
localStorage
.
getItem
(
"
de-hidden-title
"
);
var
valueTitle
=
(
value
!==
null
&&
parseInt
(
value
)
==
1
);
...
...
apps/presentationeditor/main/app/view/Toolbar.js
View file @
4e72c53a
...
...
@@ -1139,7 +1139,7 @@ define([
this
.
trigger
(
'
render:before
'
,
this
);
var
value
=
Common
.
localStorage
.
getItem
(
'
pe-compact-toolbar
'
);
var
valueCompact
=
(
value
!==
null
&&
parseInt
(
value
)
==
1
);
var
valueCompact
=
!!
(
value
!==
null
&&
parseInt
(
value
)
==
1
||
value
===
null
&&
mode
.
customization
&&
mode
.
customization
.
compactToolbar
);
value
=
Common
.
localStorage
.
getItem
(
'
pe-hidden-title
'
);
var
valueTitle
=
(
value
!==
null
&&
parseInt
(
value
)
==
1
);
...
...
apps/spreadsheeteditor/main/app/view/Toolbar.js
View file @
4e72c53a
...
...
@@ -1523,7 +1523,8 @@ define([
JSON
.
parse
(
Common
.
localStorage
.
getItem
(
'
sse-hidden-title
'
))
&&
(
options
.
title
=
true
);
JSON
.
parse
(
Common
.
localStorage
.
getItem
(
'
sse-hidden-formula
'
))
&&
(
options
.
formula
=
true
);
JSON
.
parse
(
Common
.
localStorage
.
getItem
(
'
sse-hidden-headings
'
))
&&
(
options
.
headings
=
true
);
var
isCompactView
=
!!
JSON
.
parse
(
Common
.
localStorage
.
getItem
(
'
sse-toolbar-compact
'
));
var
isCompactView
=
JSON
.
parse
(
Common
.
localStorage
.
getItem
(
'
sse-toolbar-compact
'
));
isCompactView
=
!!
(
isCompactView
!==
null
&&
parseInt
(
isCompactView
)
==
1
||
isCompactView
===
null
&&
mode
.
customization
&&
mode
.
customization
.
compactToolbar
);
me
.
mnuitemCompactToolbar
.
setChecked
(
isCompactView
);
me
.
mnuitemHideTitleBar
.
setChecked
(
!!
options
.
title
);
...
...
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