Ver código fonte

fix incorrect navigation in notes window (closes #241)

Hakim El Hattab 12 anos atrás
pai
commit
3b073eee65
1 arquivos alterados com 5 adições e 4 exclusões
  1. 5 4
      plugin/notes/notes.html

+ 5 - 4
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 );