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
71390d54
Commit
71390d54
authored
Oct 04, 2016
by
Julia Radzhabova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[DE] Add pages count to document.
parent
10271fa7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
1 deletion
+19
-1
apps/documenteditor/main/app/controller/Toolbar.js
apps/documenteditor/main/app/controller/Toolbar.js
+9
-0
apps/documenteditor/main/app/view/Toolbar.js
apps/documenteditor/main/app/view/Toolbar.js
+9
-1
apps/documenteditor/main/locale/en.json
apps/documenteditor/main/locale/en.json
+1
-0
No files found.
apps/documenteditor/main/app/controller/Toolbar.js
View file @
71390d54
...
...
@@ -252,6 +252,7 @@ define([
toolbar
.
mnuPageNumberPosPicker
.
on
(
'
item:click
'
,
_
.
bind
(
this
.
onInsertPageNumberClick
,
this
));
toolbar
.
btnEditHeader
.
menu
.
on
(
'
item:click
'
,
_
.
bind
(
this
.
onEditHeaderFooterClick
,
this
));
toolbar
.
mnuPageNumCurrentPos
.
on
(
'
click
'
,
_
.
bind
(
this
.
onPageNumCurrentPosClick
,
this
));
toolbar
.
mnuInsertPageCount
.
on
(
'
click
'
,
_
.
bind
(
this
.
onInsertPageCountClick
,
this
));
toolbar
.
listStyles
.
on
(
'
click
'
,
_
.
bind
(
this
.
onListStyleSelect
,
this
));
toolbar
.
listStyles
.
on
(
'
contextmenu
'
,
_
.
bind
(
this
.
onListStyleContextMenu
,
this
));
toolbar
.
styleMenu
.
on
(
'
hide:before
'
,
_
.
bind
(
this
.
onListStyleBeforeHide
,
this
));
...
...
@@ -1698,6 +1699,14 @@ define([
Common
.
NotificationCenter
.
trigger
(
'
edit:complete
'
,
this
.
toolbar
);
Common
.
component
.
Analytics
.
trackEvent
(
'
ToolBar
'
,
'
Page Number
'
);
},
onInsertPageCountClick
:
function
(
item
,
e
)
{
if
(
this
.
api
)
this
.
api
.
asc_AddPageCount
();
Common
.
NotificationCenter
.
trigger
(
'
edit:complete
'
,
this
.
toolbar
);
Common
.
component
.
Analytics
.
trackEvent
(
'
ToolBar
'
,
'
Pages Count
'
);
},
onEditHeaderFooterClick
:
function
(
menu
,
item
)
{
if
(
this
.
api
)
{
...
...
apps/documenteditor/main/app/view/Toolbar.js
View file @
71390d54
...
...
@@ -555,7 +555,9 @@ define([
};
this
.
mnuPageNumCurrentPos
=
clone
(
this
.
mnuPageNumberPosPicker
);
this
.
mnuInsertPageNum
=
clone
(
this
.
mnuPageNumberPosPicker
);
this
.
mnuInsertPageCount
=
clone
(
this
.
mnuPageNumberPosPicker
);
this
.
paragraphControls
.
push
(
this
.
mnuPageNumCurrentPos
);
this
.
paragraphControls
.
push
(
this
.
mnuInsertPageCount
);
this
.
toolbarControls
.
push
(
this
.
btnEditHeader
);
this
.
btnInsertShape
=
new
Common
.
UI
.
Button
({
...
...
@@ -1262,11 +1264,16 @@ define([
})
]
})
}),
this
.
mnuInsertPageCount
=
new
Common
.
UI
.
MenuItem
({
caption
:
this
.
textInsertPageCount
,
disabled
:
this
.
mnuInsertPageCount
.
isDisabled
()
})
]
})
);
this
.
paragraphControls
.
push
(
this
.
mnuPageNumCurrentPos
);
this
.
paragraphControls
.
push
(
this
.
mnuInsertPageCount
);
this
.
mnuZoomOut
=
new
Common
.
UI
.
Button
({
el
:
$
(
'
#id-menu-zoom-out
'
),
...
...
@@ -1900,7 +1907,8 @@ define([
textRight
:
'
Right:
'
,
textPageSizeCustom
:
'
Custom Page Size
'
,
textPortrait
:
'
Portrait
'
,
textLandscape
:
'
Landscape
'
textLandscape
:
'
Landscape
'
,
textInsertPageCount
:
'
Insert number of pages
'
},
DE
.
Views
.
Toolbar
||
{}));
});
apps/documenteditor/main/locale/en.json
View file @
71390d54
...
...
@@ -1443,6 +1443,7 @@
"DE.Views.Toolbar.textHideTitleBar"
:
"Hide Title Bar"
,
"DE.Views.Toolbar.textInMargin"
:
"In Margin"
,
"DE.Views.Toolbar.textInsColumnBreak"
:
"Insert Column Break"
,
"DE.Views.Toolbar.textInsertPageCount"
:
"Insert number of pages"
,
"DE.Views.Toolbar.textInsertPageNumber"
:
"Insert page number"
,
"DE.Views.Toolbar.textInsPageBreak"
:
"Insert Page Break"
,
"DE.Views.Toolbar.textInsSectionBreak"
:
"Insert Section Break"
,
...
...
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