1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-02-10 16:01:33 +00:00

add stub for published items

This commit is contained in:
Andrew Dolgov
2007-08-09 10:01:51 +01:00
parent c59d33a3a8
commit bc0ed820d1
2 changed files with 33 additions and 0 deletions
+31
View File
@@ -29,6 +29,23 @@ function expand_feed_callback() {
}
}
function pubitems_callback() {
if (xmlhttp.readyState == 4) {
try {
var container = document.getElementById('prefContent');
container.innerHTML=xmlhttp.responseText;
selectTab("pubItems", true);
if (typeof correctPNG != 'undefined') {
correctPNG();
}
notify("");
} catch (e) {
exception_error("feedlist_callback", e);
}
}
}
function feedlist_callback() {
if (xmlhttp.readyState == 4) {
try {
@@ -1268,6 +1285,8 @@ function selectTab(id, noupdate, subop) {
updateUsersList();
} else if (id == "feedBrowser") {
updateBigFeedBrowser();
} else if (id == "pubItems") {
updatePublishedItems();
}
}
@@ -1729,3 +1748,15 @@ function feedlistToggleSLAT() {
notify_progress("Loading, please wait...");
updateFeedList()
}
function updatePublishedItems() {
if (!xmlhttp_ready(xmlhttp)) {
printLockingError();
return
}
xmlhttp.open("GET", "backend.php?op=pref-pubitems");
xmlhttp.onreadystatechange=pubitems_callback;
xmlhttp.send(null);
}