return selected;
}
+function updateFeedBrowser() {
+ try {
+
+ var query = "backend.php?op=rpc&subop=feedBrowser";
+
+ var search = document.getElementById("feed_browser_search");
+ var limit = document.getElementById("feed_browser_limit");
+
+ if (limit) {
+ query = query + "&limit=" + limit[limit.selectedIndex].value;
+ }
+
+ if (search) {
+ query = query + "&search=" + param_escape(search.value);
+ }
+
+ notify_progress("Loading, please wait...", true);
+
+ new Ajax.Request(query, {
+ onComplete: function(transport) {
+ notify('');
+
+ var c = document.getElementById("browseFeedList");
+ var r = transport.responseXML.getElementsByTagName("content")[0];
+ var nr = transport.responseXML.getElementsByTagName("num-results")[0];
+ var sb = document.getElementById("feed_browser_subscribe");
+
+ if (c && r) {
+ c.innerHTML = r.firstChild.nodeValue;
+ }
+
+ if (nr && sb) {
+ if (nr.getAttribute("value") > 0) {
+ sb.disabled = false;
+ } else {
+ sb.disabled = true;
+ }
+ }
+
+ } });
+
+
+ } catch (e) {
+ exception_error("updateFeedBrowser", e);
+ }
+}
+
+
if (ENABLE_FEED_BROWSER && !SINGLE_USER_MODE) {
print " <input type=\"submit\" class=\"button\"
id=\"top25_feeds_btn\"
- onclick=\"javascript:browseFeeds()\" value=\"".__('Top 25')."\">";
+ onclick=\"javascript:browseFeeds()\" value=\"".__('Other Feeds')."\">";
}
$feeds_sort = db_escape_string($_GET["sort"]);
$class = ($feedctr % 2) ? "even" : "odd";
+ if ($details["site_url"]) {
+ $site_url = "<a target=\"_blank\" href=\"".$details["site_url"]."\">
+ <img style='border-width : 0px' src='images/www.png' alt='www'></a>";
+ } else {
+ $site_url = "";
+ }
+
print "<li class='$class' id=\"FBROW-".$details["id"]."\">$check_box".
"$feed_icon " . $details["title"] .
- " <span class='subscribers'>($subscribers)</span></li>";
+ " <span class='subscribers'>($subscribers)</span>
+ $site_url
+ </li>";
++$feedctr;
}
}
}
-function updateFeedBrowser() {
- alert("FIXME");
-}
-
}
}
-function updateFeedBrowser() {
- try {
-
- var query = "backend.php?op=rpc&subop=feedBrowser";
-
- var search = document.getElementById("feed_browser_search");
- var limit = document.getElementById("feed_browser_limit");
-
- if (limit) {
- query = query + "&limit=" + limit[limit.selectedIndex].value;
- }
-
- if (search) {
- query = query + "&search=" + param_escape(search.value);
- }
-
- notify_progress("Loading, please wait...", true);
-
- new Ajax.Request(query, {
- onComplete: function(transport) {
- notify('');
-
- var c = document.getElementById("browseFeedList");
- var r = transport.responseXML.getElementsByTagName("content")[0];
- var nr = transport.responseXML.getElementsByTagName("num-results")[0];
- var sb = document.getElementById("feed_browser_subscribe");
-
- if (c && r) {
- c.innerHTML = r.firstChild.nodeValue;
- }
-
- if (nr && sb) {
- if (nr.getAttribute("value") > 0) {
- sb.disabled = false;
- } else {
- sb.disabled = true;
- }
- }
-
- } });
-
-
- } catch (e) {
- exception_error("updateFeedBrowser", e);
- }
-}
-
function feedBrowserSubscribe() {
try {