Browse Source

Scroll as read: mark as unread bug

Alexandre Alapetite 9 years ago
parent
commit
626d9cbccb
1 changed files with 2 additions and 1 deletions
  1. 2 1
      p/scripts/main.js

+ 2 - 1
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',