Browse Source

Fix unexpected behavior during navigation

When the navigation is done with the mouse and shortcuts, the focus on the current article is lost when
the article is collapsed with the mouse. So when navigating with the shortcut does not open the intended
article.

See #473 and #478
Alexis Degrugillier 12 years ago
parent
commit
65bde8b6cf
1 changed files with 2 additions and 0 deletions
  1. 2 0
      p/scripts/main.js

+ 2 - 0
p/scripts/main.js

@@ -227,6 +227,8 @@ function toggleContent(new_active, old_active) {
 			new_active.addClass("active");
 			new_active.addClass("active");
 		}
 		}
 		new_active.addClass("current");
 		new_active.addClass("current");
+	} else {
+		new_active.toggleClass("current");
 	}
 	}
 
 
 	var box_to_move = "html,body",
 	var box_to_move = "html,body",