Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
my-cucumbers-ru-github-io
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Лотуга Данила Сергеевич
my-cucumbers-ru-github-io
Commits
ae328760
Commit
ae328760
authored
Mar 01, 2012
by
Oleg Roschupkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issue with inner navigation.
It was working in list mode.
parent
992b467b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
7 deletions
+15
-7
script.js
scripts/script.js
+15
-7
No files found.
scripts/script.js
View file @
ae328760
...
@@ -223,7 +223,8 @@
...
@@ -223,7 +223,8 @@
// Shortcut for alt, shift and meta keys
// Shortcut for alt, shift and meta keys
if
(
e
.
altKey
||
e
.
ctrlKey
||
e
.
metaKey
)
{
return
;
}
if
(
e
.
altKey
||
e
.
ctrlKey
||
e
.
metaKey
)
{
return
;
}
var
currentSlideNumber
=
getCurrentSlideNumber
();
var
currentSlideNumber
=
getCurrentSlideNumber
(),
innerNavigationCompleted
=
true
;
switch
(
e
.
which
)
{
switch
(
e
.
which
)
{
case
116
:
// F5
case
116
:
// F5
...
@@ -268,16 +269,23 @@
...
@@ -268,16 +269,23 @@
case
74
:
// j
case
74
:
// j
e
.
preventDefault
();
e
.
preventDefault
();
// Only go to next slide if current slide have no inner
if
(
!
isListMode
()
)
{
// navigation or inner navigation is fully shown
// Inner navigation is "completed" if current slide have
// NOTE: But first of all check if there is no current slide
// no inner navigation or inner navigation is fully shown
innerNavigationCompleted
=
!
slideList
[
currentSlideNumber
].
hasInnerNavigation
||
-
1
===
increaseInnerNavigation
(
currentSlideNumber
);
}
else
{
// Also inner navigation is always "completed" if we are in
// list mode
innerNavigationCompleted
=
true
;
}
// NOTE: First of all check if there is no current slide
if
(
if
(
-
1
===
currentSlideNumber
||
-
1
===
currentSlideNumber
||
innerNavigationCompleted
!
slideList
[
currentSlideNumber
].
hasInnerNavigation
||
-
1
===
increaseInnerNavigation
(
currentSlideNumber
)
)
{
)
{
currentSlideNumber
++
;
currentSlideNumber
++
;
goToSlide
(
currentSlideNumber
);
goToSlide
(
currentSlideNumber
);
// We must run slideshow only in full mode
if
(
!
isListMode
())
{
if
(
!
isListMode
())
{
runSlideshowIfPresented
(
currentSlideNumber
);
runSlideshowIfPresented
(
currentSlideNumber
);
}
}
...
...
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