From: Andrew Dolgov Date: Thu, 9 Aug 2007 09:01:51 +0000 (+0100) Subject: add stub for published items X-Git-Tag: 1.2.14~119 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=bc0ed820d19f1ee42ae054b4f0e67f2b34d5cfea;p=tt-rss.git add stub for published items --- diff --git a/prefs.js b/prefs.js index 33b9cc71..e9f52476 100644 --- a/prefs.js +++ b/prefs.js @@ -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); + +} diff --git a/prefs.php b/prefs.php index 4893aa61..8efe8288 100644 --- a/prefs.php +++ b/prefs.php @@ -108,6 +108,8 @@ window.onload = init;
+