Commits

Anonymous committed 6840417

Portfolio.

  • Participants
  • Parent commits e067a16

Comments (0)

Files changed (1)

File _include_areas_/portfolio.php

 function refresh_years_level2(){
 	var target = $("#level2-prev");
 
-	//alert(cur2_offset);
-	alert(gallery_level2.length);
-	
+
 	if(cur2_offset - 1 < 0){
 		if(!target.hasClass('year-left-inactive'))
 			target.addClass('year-left-inactive');
 
 	$("#portfolio-level1-1").click(function(){
 		refresh_gallery_level2(1);
+		refresh_years_level2();
 		
 		$("#eskizy").removeClass('vkladka-inactive');
 		$("#3dproject").addClass('vkladka-inactive');
 		$("#photos").addClass('vkladka-inactive');
 
-		refresh_years_level2();
+		
 		
 		return false;
 	});
 	$("#portfolio-level1-2").click(function(){
 		refresh_gallery_level2(2);
+		refresh_years_level2();
 		
 		$("#eskizy").removeClass('vkladka-inactive');
 		$("#3dproject").addClass('vkladka-inactive');
 		$("#photos").addClass('vkladka-inactive');
 
-		refresh_years_level2();
+		
 		
 		return false;
 	});
 	$("#portfolio-level1-3").click(function(){
 		refresh_gallery_level2(3);
+		refresh_years_level2();
 		
 		$("#eskizy").removeClass('vkladka-inactive');
 		$("#3dproject").addClass('vkladka-inactive');
 		$("#photos").addClass('vkladka-inactive');
 
-		refresh_years_level2();
+		
 		
 		return false;
 	});
 	$("#portfolio-level1-4").click(function(){
 		refresh_gallery_level2(4);
+		refresh_years_level2();
 		
 		$("#eskizy").removeClass('vkladka-inactive');
 		$("#3dproject").addClass('vkladka-inactive');
 		$("#photos").addClass('vkladka-inactive');
 
-		refresh_years_level2();
+		
 		
 		return false;
 	});