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
2b10bc34
Commit
2b10bc34
authored
Jan 17, 2017
by
Julia Radzhabova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[DE] Add footnote by clicking btnNotes button.
parent
126a0c9c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
apps/documenteditor/main/app/controller/Toolbar.js
apps/documenteditor/main/app/controller/Toolbar.js
+8
-2
apps/documenteditor/main/app/view/Toolbar.js
apps/documenteditor/main/app/view/Toolbar.js
+1
-0
No files found.
apps/documenteditor/main/app/controller/Toolbar.js
View file @
2b10bc34
...
...
@@ -266,7 +266,8 @@ define([
toolbar
.
mnuZoomIn
.
on
(
'
click
'
,
_
.
bind
(
this
.
onZoomInClick
,
this
));
toolbar
.
mnuZoomOut
.
on
(
'
click
'
,
_
.
bind
(
this
.
onZoomOutClick
,
this
));
toolbar
.
btnInsertEquation
.
on
(
'
click
'
,
_
.
bind
(
this
.
onInsertEquationClick
,
this
));
toolbar
.
btnNotes
.
menu
.
on
(
'
item:click
'
,
_
.
bind
(
this
.
onNotesClick
,
this
));
toolbar
.
btnNotes
.
on
(
'
click
'
,
_
.
bind
(
this
.
onNotesClick
,
this
));
toolbar
.
btnNotes
.
menu
.
on
(
'
item:click
'
,
_
.
bind
(
this
.
onNotesMenuClick
,
this
));
toolbar
.
mnuGotoFootPrev
.
on
(
'
click
'
,
_
.
bind
(
this
.
onFootnotePrevClick
,
this
));
toolbar
.
mnuGotoFootNext
.
on
(
'
click
'
,
_
.
bind
(
this
.
onFootnoteNextClick
,
this
));
...
...
@@ -1997,7 +1998,12 @@ define([
Common
.
NotificationCenter
.
trigger
(
'
edit:complete
'
,
this
.
toolbar
);
},
onNotesClick
:
function
(
menu
,
item
)
{
onNotesClick
:
function
()
{
if
(
this
.
api
)
this
.
api
.
asc_AddFootnote
();
},
onNotesMenuClick
:
function
(
menu
,
item
)
{
if
(
this
.
api
)
{
if
(
item
.
value
==
'
ins_footnote
'
)
this
.
api
.
asc_AddFootnote
();
...
...
apps/documenteditor/main/app/view/Toolbar.js
View file @
2b10bc34
...
...
@@ -741,6 +741,7 @@ define([
id
:
'
id-toolbar-btn-notes
'
,
cls
:
'
btn-toolbar
'
,
iconCls
:
'
btn-notes
'
,
split
:
true
,
menu
:
true
});
this
.
paragraphControls
.
push
(
this
.
btnNotes
);
...
...
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