fix incorrect navigation in notes window (closes #241)
authorHakim El Hattab <hakim.elhattab@gmail.com>
Fri, 16 Nov 2012 14:08:32 +0000 (09:08 -0500)
committerHakim El Hattab <hakim.elhattab@gmail.com>
Fri, 16 Nov 2012 14:08:32 +0000 (09:08 -0500)
plugin/notes/notes.html

index 8763056ed812c7fb6274bd01d4b87c79612ccb8c..64b921cec1a4401e6d869303827f0b38a8182d85 100644 (file)
                                                        }
                                                }
 
-                                               // 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();
                                                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 );