fix incorrect navigation in notes window (closes #241)

This commit is contained in:
Hakim El Hattab 2012-11-16 09:08:32 -05:00
parent 10317438b1
commit 3b073eee65
1 changed files with 5 additions and 4 deletions

View File

@ -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 // Showing and hiding fragments
if( data.fragment === 'next' ) { if( data.fragment === 'next' ) {
currentSlide.contentWindow.Reveal.nextFragment(); currentSlide.contentWindow.Reveal.nextFragment();
@ -130,6 +126,11 @@
else if( data.fragment === 'prev' ) { else if( data.fragment === 'prev' ) {
currentSlide.contentWindow.Reveal.prevFragment(); 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 ); }, false );