no special counter handling for catchupAll
This commit is contained in:
parent
e6505b7d83
commit
6ea1430a04
|
@ -404,6 +404,8 @@ class Feeds extends Handler_Protected {
|
||||||
$sth = $this->pdo->prepare("UPDATE ttrss_user_entries SET
|
$sth = $this->pdo->prepare("UPDATE ttrss_user_entries SET
|
||||||
last_read = NOW(), unread = false WHERE unread = true AND owner_uid = ?");
|
last_read = NOW(), unread = false WHERE unread = true AND owner_uid = ?");
|
||||||
$sth->execute([$_SESSION['uid']]);
|
$sth->execute([$_SESSION['uid']]);
|
||||||
|
|
||||||
|
print json_encode(array("message" => "UPDATE_COUNTERS"));
|
||||||
}
|
}
|
||||||
|
|
||||||
function view() {
|
function view() {
|
||||||
|
|
|
@ -395,8 +395,7 @@ const Feeds = {
|
||||||
|
|
||||||
Notify.progress("Marking all feeds as read...");
|
Notify.progress("Marking all feeds as read...");
|
||||||
|
|
||||||
xhr.post("backend.php", {op: "feeds", method: "catchupAll"}, () => {
|
xhr.json("backend.php", {op: "feeds", method: "catchupAll"}, () => {
|
||||||
this.requestCounters();
|
|
||||||
this.reloadCurrent();
|
this.reloadCurrent();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue