Переглянути джерело

Scroll as read: mark as unread bug

Alexandre Alapetite 9 роки тому
батько
коміт
626d9cbccb
1 змінених файлів з 2 додано та 1 видалено
  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;
 	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({
 	$.ajax({
 		type: 'POST',
 		type: 'POST',