diff options
author | Andrew Dolgov <[email protected]> | 2007-08-09 10:01:51 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2007-08-09 10:01:51 +0100 |
commit | bc0ed820d19f1ee42ae054b4f0e67f2b34d5cfea (patch) | |
tree | 66318e24f9f784c8c7a2d2811bf94f9b8b2e7505 | |
parent | c59d33a3a8e5b2aab15f893727227cc1e3bea212 (diff) |
add stub for published items
-rw-r--r-- | prefs.js | 31 | ||||
-rw-r--r-- | prefs.php | 2 |
2 files changed, 33 insertions, 0 deletions
@@ -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); + +} @@ -108,6 +108,8 @@ window.onload = init; <div id="feedBrowserTab" class="prefsTab" onclick="selectTab('feedBrowser')"><?php echo __('Other Feeds') ?></div> <?php } ?> + <div id="pubItemsTab" class="prefsTab" + onclick="selectTab('pubItems')"><?php echo __('Published Articles') ?></div> <div id="filterConfigTab" class="prefsTab" onclick="selectTab('filterConfig')"><?php echo __('Content Filtering') ?></div> <?php if (get_pref($link, 'ENABLE_LABELS')) { ?> |