mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 20:45:55 +00:00
broken a lot of feed update functionality :(
This commit is contained in:
44
tt-rss.js
44
tt-rss.js
@@ -166,31 +166,39 @@ function catchupPage(feed) {
|
||||
for (i = 0; i < content.rows.length; i++) {
|
||||
var row_id = content.rows[i].id.replace("RROW-", "");
|
||||
if (row_id.length > 0) {
|
||||
rows.push(row_id);
|
||||
content.rows[i].className = content.rows[i].className.replace("Unread", "");
|
||||
if (content.rows[i].className.match("Unread")) {
|
||||
rows.push(row_id);
|
||||
content.rows[i].className = content.rows[i].className.replace("Unread", "");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var feedr = document.getElementById("FEEDR-" + feed);
|
||||
var feedu = document.getElementById("FEEDU-" + feed);
|
||||
if (rows.length > 0) {
|
||||
|
||||
feedu.innerHTML = feedu.innerHTML - rows.length;
|
||||
var feedr = document.getElementById("FEEDR-" + feed);
|
||||
var feedu = document.getElementById("FEEDU-" + feed);
|
||||
|
||||
feedu.innerHTML = feedu.innerHTML - rows.length;
|
||||
|
||||
if (feedu.innerHTML > 0 && !feedr.className.match("Unread")) {
|
||||
feedr.className = feedr.className + "Unread";
|
||||
} else if (feedu.innerHTML <= 0) {
|
||||
feedr.className = feedr.className.replace("Unread", "");
|
||||
}
|
||||
|
||||
if (feedu.innerHTML > 0 && !feedr.className.match("Unread")) {
|
||||
feedr.className = feedr.className + "Unread";
|
||||
} else if (feedu.innerHTML <= 0) {
|
||||
feedr.className = feedr.className.replace("Unread", "");
|
||||
}
|
||||
var query_str = "backend.php?op=rpc&subop=catchupPage&ids=" +
|
||||
param_escape(rows.toString());
|
||||
|
||||
notify("Marking this page as read...");
|
||||
|
||||
xmlhttp.open("GET", query_str, true);
|
||||
xmlhttp.onreadystatechange=notify_callback;
|
||||
xmlhttp.send(null);
|
||||
|
||||
var query_str = "backend.php?op=rpc&subop=catchupPage&ids=" +
|
||||
param_escape(rows.toString());
|
||||
|
||||
notify("Marking this page as read...");
|
||||
|
||||
xmlhttp.open("GET", query_str, true);
|
||||
xmlhttp.onreadystatechange=notify_callback;
|
||||
xmlhttp.send(null);
|
||||
} else {
|
||||
notify("No unread items on this page.");
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
function catchupAllFeeds() {
|
||||
|
||||
Reference in New Issue
Block a user