Browse Source

Fix collapse shortcut behavior

Before, the collapse shortcut was marking all articles as read when used. No matter what configuration you use.
Now, the collapse shortcut marks articles only if the appropriate configuration is used (when article is viewed).
Alexis Degrugillier 11 years ago
parent
commit
5d718b5c3b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      p/scripts/main.js

+ 1 - 1
p/scripts/main.js

@@ -373,7 +373,7 @@ function collapse_entry() {
 
 
 	var flux_current = $(".flux.current");
 	var flux_current = $(".flux.current");
 	flux_current.toggleClass("active");
 	flux_current.toggleClass("active");
-	if (isCollapsed) {
+	if (isCollapsed && auto_mark_article) {
 		mark_read(flux_current, true);
 		mark_read(flux_current, true);
 	}
 	}
 }
 }