summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Alexis Degrugillier <github@ainw.org> 2014-09-03 21:33:29 -0400
committerGravatar Alexis Degrugillier <github@ainw.org> 2014-09-03 21:33:29 -0400
commit5d718b5c3bc183441b7629377367f23f8773045a (patch)
tree3d9aa55f4e498d3abc9d3548a10e341e6ec2385a
parenta2ba5e2a21ad79e065925d7642f62c5cf4083212 (diff)
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).
-rw-r--r--p/scripts/main.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/p/scripts/main.js b/p/scripts/main.js
index c37f9f6f2..7bd746f75 100644
--- a/p/scripts/main.js
+++ b/p/scripts/main.js
@@ -373,7 +373,7 @@ function collapse_entry() {
var flux_current = $(".flux.current");
flux_current.toggleClass("active");
- if (isCollapsed) {
+ if (isCollapsed && auto_mark_article) {
mark_read(flux_current, true);
}
}