summaryrefslogtreecommitdiff
path: root/functions.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2009-01-24 06:01:17 +0100
committerAndrew Dolgov <[email protected]>2009-01-24 06:01:17 +0100
commitc2913898f1f56548d457073dbaa03c77ddc6d0d9 (patch)
tree10b37a0ddaccc4b77bbeff06daed4759a6d90336 /functions.js
parentb56465dd56772efb80ef251d8d19f7177b244d57 (diff)
use popup feedbrowser for main UI (2)
Diffstat (limited to 'functions.js')
-rw-r--r--functions.js24
1 files changed, 24 insertions, 0 deletions
diff --git a/functions.js b/functions.js
index 0e9ec02a1..35ca9e77f 100644
--- a/functions.js
+++ b/functions.js
@@ -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;
+}
+