function feedlist_callback() {
if (xmlhttp.readyState == 4) {
- debug("feedlist_callback");
+ feedlist_callback2(xmlhttp);
+ }
+}
+
+function feedlist_callback2(transport) {
+ try {
+ debug("feedlist_callback2");
var f = document.getElementById("feeds-frame");
- f.innerHTML = xmlhttp.responseText;
+ f.innerHTML = transport.responseText;
feedlist_init();
+ } catch (e) {
+ exception_error("feedlist_callback2", e);
}
}
var container = document.getElementById("BRDET-" + feed_to_expand);
container.innerHTML=xmlhttp.responseText;
// container.style.display = "block";
-// p_notify("");
Effect.Appear(container, {duration : 0.5});
} catch (e) {
exception_error("expand_feed_callback", e);
return
}
-// document.getElementById("prefContent").innerHTML = "Loading feeds, please wait...";
-
-// p_notify("Loading, please wait...");
-
var feed_search = document.getElementById("feed_search");
var search = "";
if (feed_search) { search = feed_search.value; }
return
}
-// document.getElementById("prefContent").innerHTML = "Loading feeds, please wait...";
-
-// p_notify("Loading, please wait...");
-
xmlhttp.open("GET", "backend.php?op=pref-users&sort="
+ param_escape(sort_key), true);
xmlhttp.onreadystatechange=userlist_callback;
return
}
-// document.getElementById("prefContent").innerHTML = "Loading filters, please wait...";
-
-// p_notify("Loading, please wait...");
-
xmlhttp.open("GET", "backend.php?op=pref-filters&sort=" +
param_escape(sort_key), true);
xmlhttp.onreadystatechange=filterlist_callback;
return
}
-// p_notify("Loading, please wait...");
-
-// document.getElementById("prefContent").innerHTML = "Loading labels, please wait...";
-
xmlhttp.open("GET", "backend.php?op=pref-labels&sort=" +
param_escape(sort_key), true);
xmlhttp.onreadystatechange=labellist_callback;
return
}
-// p_notify("Loading, please wait...");
-
xmlhttp.open("GET", "backend.php?op=pref-prefs", true);
xmlhttp.onreadystatechange=prefslist_callback;
xmlhttp.send(null);
return
}
-// p_notify("Loading, please wait...");
-
var query = "backend.php?op=pref-feed-browser";
var limit_sel = document.getElementById("feedBrowserLimit");
debug("updateFeedList Q=" + query_str);
- if (xmlhttp_ready(xmlhttp)) {
- xmlhttp.open("GET", query_str, true);
- xmlhttp.onreadystatechange=feedlist_callback;
- xmlhttp.send(null);
- } else {
- debug("xmlhttp busy");
- //printLockingError();
- }
+ new Ajax.Request(query_str, {
+ onComplete: function(transport) {
+ feedlist_callback2(transport);
+ } });
}
debug("catchupAllFeeds Q=" + query_str);
- if (xmlhttp_ready(xmlhttp)) {
- xmlhttp.open("GET", query_str, true);
- xmlhttp.onreadystatechange=feedlist_callback;
- xmlhttp.send(null);
- } else {
- debug("xmlhttp busy");
- //printLockingError();
- }
+ new Ajax.Request(query_str, {
+ onComplete: function(transport) {
+ feedlist_callback2(transport);
+ } });
global_unread = 0;
updateTitle("");
viewCurrentFeed(0, "");
}
-function localPiggieFunction(enable) {
- if (enable) {
- var query_str = "backend.php?op=feeds&subop=piggie";
-
- if (xmlhttp_ready(xmlhttp)) {
-
- xmlhttp.open("GET", query_str, true);
- xmlhttp.onreadystatechange=feedlist_callback;
- xmlhttp.send(null);
- }
- }
-}
-
// if argument is undefined, current subtitle is not updated
// use blank string to clear subtitle
function updateTitle(s) {