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

use popup feedbrowser for main UI (2)

This commit is contained in:
Andrew Dolgov
2009-01-24 06:01:17 +01:00
parent b56465dd56
commit c2913898f1
5 changed files with 141 additions and 37 deletions

View File

@@ -2015,3 +2015,27 @@ function labelFieldsCheck(elem) {
}
}
function getSelectedFeedsFromBrowser() {
var list = document.getElementById("browseFeedList");
if (!list) list = document.getElementById("browseBigFeedList");
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);
}
}
}
return selected;
}