1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-15 07:25:55 +00:00

feed browser now works

This commit is contained in:
Andrew Dolgov
2005-12-29 19:25:07 +01:00
parent eadcf397db
commit a0476535ef
2 changed files with 59 additions and 2 deletions

View File

@@ -1293,3 +1293,37 @@ function browseFeeds() {
xmlhttp.send(null);
}
function feedBrowserSubscribe() {
try {
var list = document.getElementById("browseFeedList");
var selected = new Array();
for (i = 0; i < list.childNodes.length; i++) {
var child = list.childNodes[i];
if (child.id && child.id.match("FBROW-")) {
var id = child.id.replace("FBROW-", "");
var cb = document.getElementById("FBCHK-" + id);
if (cb.checked) {
selected.push(id);
}
}
}
if (selected.length > 0) {
closeInfoBox();
xmlhttp.open("GET", "backend.php?op=pref-feeds&subop=massSubscribe&ids="+
param_escape(selected.toString()), true);
xmlhttp.onreadystatechange=feedlist_callback;
xmlhttp.send(null);
} else {
alert("No feeds are selected.");
}
} catch (e) {
exception_error("feedBrowserSubscribe", e);
}
}