aboutsummaryrefslogtreecommitdiff
path: root/plugin/notes/notes.html
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2012-11-16 09:08:32 -0500
committerHakim El Hattab <hakim.elhattab@gmail.com>2012-11-16 09:08:32 -0500
commit3b073eee65ad0f1b367a54229d0beb2124919d86 (patch)
treeef9e9b5e25ad061465087037869b9ffaac8d0a69 /plugin/notes/notes.html
parent10317438b1027eabb77fc45281825b6f8be93a80 (diff)
downloadfreenode-live-2017-presentation-3b073eee65ad0f1b367a54229d0beb2124919d86.tar
freenode-live-2017-presentation-3b073eee65ad0f1b367a54229d0beb2124919d86.tar.gz
fix incorrect navigation in notes window (closes #241)
Diffstat (limited to 'plugin/notes/notes.html')
-rw-r--r--plugin/notes/notes.html9
1 files changed, 5 insertions, 4 deletions
diff --git a/plugin/notes/notes.html b/plugin/notes/notes.html
index 8763056..64b921c 100644
--- a/plugin/notes/notes.html
+++ b/plugin/notes/notes.html
@@ -119,10 +119,6 @@
}
}
- // Update the note slides
- currentSlide.contentWindow.Reveal.slide( data.indexh, data.indexv );
- nextSlide.contentWindow.Reveal.slide( data.nextindexh, data.nextindexv );
-
// Showing and hiding fragments
if( data.fragment === 'next' ) {
currentSlide.contentWindow.Reveal.nextFragment();
@@ -130,6 +126,11 @@
else if( data.fragment === 'prev' ) {
currentSlide.contentWindow.Reveal.prevFragment();
}
+ else {
+ // Update the note slides
+ currentSlide.contentWindow.Reveal.slide( data.indexh, data.indexv );
+ nextSlide.contentWindow.Reveal.slide( data.nextindexh, data.nextindexv );
+ }
}, false );