diff options
author | Andrew Dolgov <[email protected]> | 2009-01-24 06:01:17 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2009-01-24 06:01:17 +0100 |
commit | c2913898f1f56548d457073dbaa03c77ddc6d0d9 (patch) | |
tree | 10b37a0ddaccc4b77bbeff06daed4759a6d90336 /functions.js | |
parent | b56465dd56772efb80ef251d8d19f7177b244d57 (diff) |
use popup feedbrowser for main UI (2)
Diffstat (limited to 'functions.js')
-rw-r--r-- | functions.js | 24 |
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; +} + |