aboutsummaryrefslogtreecommitdiff
path: root/p
diff options
context:
space:
mode:
authorGravatar Alexis Degrugillier <github@ainw.org> 2014-04-09 20:20:32 -0400
committerGravatar Alexis Degrugillier <github@ainw.org> 2014-04-09 20:20:32 -0400
commit65bde8b6cfd9c22e87514cbd109ac475d380c096 (patch)
treec79a724d8ccbd1d77fbdb35e6815296a55d5cdb7 /p
parent8f59bce06960805e0f314f5edd4f903303a74199 (diff)
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
Diffstat (limited to 'p')
-rw-r--r--p/scripts/main.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/p/scripts/main.js b/p/scripts/main.js
index f73ca334f..18e1573cf 100644
--- a/p/scripts/main.js
+++ b/p/scripts/main.js
@@ -227,6 +227,8 @@ function toggleContent(new_active, old_active) {
new_active.addClass("active");
}
new_active.addClass("current");
+ } else {
+ new_active.toggleClass("current");
}
var box_to_move = "html,body",