From 626d9cbccbd0a52c7ece4ffeaab9bd09f62a3761 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Fri, 14 Oct 2016 09:20:11 +0200 Subject: Scroll as read: mark as unread bug --- p/scripts/main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'p') 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', -- cgit v1.2.3