Explorar el Código

ExampleViewer: Bugfix selection/filtering

Mugen87 hace 9 años
padre
commit
ce9e8a3f4a
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      examples/index.html

+ 2 - 2
examples/index.html

@@ -333,9 +333,9 @@
 
 
 		function selectFile( file ) {
 		function selectFile( file ) {
 
 
-			if ( selected !== null ) links[ selected ].className = 'link';
+			if ( selected !== null ) links[ selected ].classList.remove( 'selected' );
 
 
-			links[ file ].className = 'link selected';
+			links[ file ].classList.add( 'selected' );
 
 
 			window.location.hash = file;
 			window.location.hash = file;
 			viewer.focus();
 			viewer.focus();