Преглед изворни кода

ExampleViewer: Bugfix selection/filtering

Mugen87 пре 10 година
родитељ
комит
ce9e8a3f4a
1 измењених фајлова са 2 додато и 2 уклоњено
  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();