From: Hakim El Hattab Date: Fri, 16 Nov 2012 14:08:32 +0000 (-0500) Subject: fix incorrect navigation in notes window (closes #241) X-Git-Tag: 2.2.0~49 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3b073eee65ad0f1b367a54229d0beb2124919d86;p=reveal.js.git fix incorrect navigation in notes window (closes #241) --- 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 );