var init_params = new Array();
+var caller_subop = false;
+
function expand_feed_callback() {
if (xmlhttp.readyState == 4) {
try {
var container = document.getElementById('prefContent');
container.innerHTML=xmlhttp.responseText;
selectTab("feedConfig", true);
+
+ if (caller_subop) {
+ var tuple = caller_subop.split(":");
+ if (tuple[0] == 'editFeed') {
+ window.setTimeout('editFeed('+tuple[1]+')', 100);
+ }
+
+ caller_subop = false;
+ }
+
notify("");
} catch (e) {
exception_error("feedlist_callback", e);
} else {
notify("Adding feed...");
- xmlhttp.open("GET", "backend.php?op=pref-feeds&subop=add&feed_url=" +
+ xmlhttp.open("GET", "backend.php?op=pref-feeds&subop=add&from=tt-rss&feed_url=" +
param_escape(link.value), true);
xmlhttp.onreadystatechange=feedlist_callback;
xmlhttp.send(null);
}
-function selectTab(id, noupdate) {
+function selectTab(id, noupdate, subop) {
// alert(id);
return
}
+ try {
+ var c = document.getElementById('prefContent');
+ c.scrollTop = 0;
+ } catch (e) { };
+
if (!noupdate) {
debug("selectTab: " + id + "(NU: " + noupdate + ")");
document.onkeydown = pref_hotkey_handler;
+ var tab = getURLParam('tab');
+
+ caller_subop = getURLParam('subop');
+
+ if (tab) {
+ active_tab = tab;
+ }
+
if (navigator.userAgent.match("Opera")) {
setTimeout("selectTab()", 500);
} else {
xmlhttp.onreadystatechange=infobox_callback;
xmlhttp.send(null);
}
+
+function showFeedsWithErrors() {
+ displayDlg('feedUpdateErrors');
+}
+
+