]> git.wh0rd.org Git - tt-rss.git/commitdiff
add stub for published items
authorAndrew Dolgov <fox@madoka.spb.ru>
Thu, 9 Aug 2007 09:01:51 +0000 (10:01 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Thu, 9 Aug 2007 09:01:51 +0000 (10:01 +0100)
prefs.js
prefs.php

index 33b9cc71b6a5bcbda69cef14d3a1e81e658df33c..e9f52476f8ee38c14e68de17223bd364e8d25b81 100644 (file)
--- 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);
+
+}
index 4893aa618e027af206da770c0b3708fea519863a..8efe82883dd17f7f8c3c792a22829505fdbb8de5 100644 (file)
--- a/prefs.php
+++ b/prefs.php
@@ -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')) { ?>