Browse Source

ExampleViewer: Bugfix selection/filtering

Mugen87 9 years ago
parent
commit
ce9e8a3f4a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      examples/index.html

+ 2 - 2
examples/index.html

@@ -333,9 +333,9 @@
 
 		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;
 			viewer.focus();