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
f848da06
Commit
f848da06
authored
Mar 14, 2017
by
Maxim Kadushkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PPE embed] fix bug 33446
parent
5f99081e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
6 deletions
+14
-6
apps/presentationeditor/embed/js/ApplicationController.js
apps/presentationeditor/embed/js/ApplicationController.js
+14
-6
No files found.
apps/presentationeditor/embed/js/ApplicationController.js
View file @
f848da06
...
@@ -274,12 +274,20 @@ var ApplicationController = new(function(){
...
@@ -274,12 +274,20 @@ var ApplicationController = new(function(){
if
(
e
.
keyCode
==
13
){
if
(
e
.
keyCode
==
13
){
var
newPage
=
parseInt
(
$
(
'
#page-number
'
).
val
());
var
newPage
=
parseInt
(
$
(
'
#page-number
'
).
val
());
if
(
newPage
>
maxPages
)
newPage
=
maxPages
;
else
if
(
isNaN
(
newPage
)
)
{
if
(
newPage
<
2
||
isNaN
(
newPage
)
)
newPage
=
1
;
$
(
'
#page-number
'
).
val
(
currentPage
+
1
);
}
else
{
if
(
isplaymode
)
if
(
newPage
>
maxPages
)
newPage
=
maxPages
;
else
api
.
DemonstrationGoToSlide
(
newPage
-
1
);
else
if
(
newPage
<
2
)
newPage
=
1
;
api
.
goToPage
(
newPage
-
1
);
if
(
newPage
==
currentPage
+
1
)
{
$
(
'
#page-number
'
).
val
(
newPage
);
}
else
if
(
isplaymode
)
{
currentPage
=
newPage
-
1
;
api
.
DemonstrationGoToSlide
(
newPage
-
1
);
}
else
api
.
goToPage
(
newPage
-
1
);
}
$pagenum
.
blur
();
$pagenum
.
blur
();
}
}
...
...
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