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
24ae06f2
Commit
24ae06f2
authored
Sep 13, 2016
by
Julia Radzhabova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[DE] Bug with delayed loading of toolbar.
parent
8c713949
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
apps/documenteditor/main/app/view/Toolbar.js
apps/documenteditor/main/app/view/Toolbar.js
+12
-5
No files found.
apps/documenteditor/main/app/view/Toolbar.js
View file @
24ae06f2
...
...
@@ -442,14 +442,21 @@ define([
this
.
paragraphControls
.
push
(
this
.
btnMultilevels
);
this
.
textOnlyControls
.
push
(
this
.
btnMultilevels
);
var
clone
=
function
(
source
)
{
var
obj
=
{};
for
(
var
prop
in
source
)
obj
[
prop
]
=
(
typeof
(
source
[
prop
])
==
'
object
'
)
?
clone
(
source
[
prop
])
:
source
[
prop
];
return
obj
;
};
this
.
mnuMarkersPicker
=
{
conf
:
{
index
:
0
},
selectByIndex
:
function
(
idx
)
{
this
.
conf
.
index
=
idx
;
}
};
this
.
mnuNumbersPicker
=
_
.
clone
(
this
.
mnuMarkersPicker
);
this
.
mnuMultilevelPicker
=
_
.
clone
(
this
.
mnuMarkersPicker
);
this
.
mnuNumbersPicker
=
clone
(
this
.
mnuMarkersPicker
);
this
.
mnuMultilevelPicker
=
clone
(
this
.
mnuMarkersPicker
);
this
.
btnInsertTable
=
new
Common
.
UI
.
Button
({
id
:
'
id-toolbar-btn-inserttable
'
,
...
...
@@ -546,8 +553,8 @@ define([
this
.
conf
.
disabled
=
val
;
}
};
this
.
mnuPageNumCurrentPos
=
_
.
clone
(
this
.
mnuPageNumberPosPicker
);
this
.
mnuInsertPageNum
=
_
.
clone
(
this
.
mnuPageNumberPosPicker
);
this
.
mnuPageNumCurrentPos
=
clone
(
this
.
mnuPageNumberPosPicker
);
this
.
mnuInsertPageNum
=
clone
(
this
.
mnuPageNumberPosPicker
);
this
.
paragraphControls
.
push
(
this
.
mnuPageNumCurrentPos
);
this
.
toolbarControls
.
push
(
this
.
btnEditHeader
);
...
...
@@ -747,7 +754,7 @@ define([
setChecked
:
function
(
val
)
{
this
.
conf
.
checked
=
val
;},
isChecked
:
function
()
{
return
this
.
conf
.
checked
;
}
};
this
.
btnFitWidth
=
_
.
clone
(
this
.
btnFitPage
);
this
.
btnFitWidth
=
clone
(
this
.
btnFitPage
);
this
.
mnuZoom
=
{
options
:
{
value
:
100
}};
this
.
btnAdvSettings
=
new
Common
.
UI
.
Button
({
...
...
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