Skip to content

A free, self-hostable news aggregator…

Scroll as read: mark as unread bug

Alexandre Alapetite626d9cbccbd0
diff --git a/p/scripts/main.js b/p/scripts/main.js
index 75d194906..b3531e884 100644
--- a/p/scripts/main.js
+++ b/p/scripts/main.js
@@ -126,7 +126,8 @@ function mark_read(active, only_not_read) {
}
pending_entries[active.attr('id')] = true;
- var url = '.?c=entry&a=read&id=' + active.attr('id').replace(/^flux_/, '');
+ var url = '.?c=entry&a=read&id=' + active.attr('id').replace(/^flux_/, '') +
+ (active.hasClass('not_read') ? '' : '&is_read=0');
$.ajax({
type: 'POST',