summaryrefslogtreecommitdiff
path: root/functions.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-11-14 16:15:51 +0300
committerAndrew Dolgov <[email protected]>2010-11-14 16:15:51 +0300
commit3c8e3b1572c55708741191c45a2e5c1e6028b8cb (patch)
treef90b2358b676a9a5366a4a1f32229e068ff2c37e /functions.js
parentb1b3344b8245c1ea026fe41c041d2c345c8f586f (diff)
getSelectedFeedsFromBrowser: code cleanup
Diffstat (limited to 'functions.js')
-rw-r--r--functions.js24
1 files changed, 10 insertions, 14 deletions
diff --git a/functions.js b/functions.js
index 2e7412c23..8428af39e 100644
--- a/functions.js
+++ b/functions.js
@@ -871,22 +871,18 @@ function remove_splash() {
function getSelectedFeedsFromBrowser() {
- var list = $("browseFeedList");
+ var list = $$("#browseFeedList li[id*=FBROW]");
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 = $("FBCHK-" + id);
-
- if (cb.checked) {
- selected.push(id);
- }
- }
- }
+
+ list.each(function(child) {
+ var id = child.id.replace("FBROW-", "");
+ var cb = $("FBCHK-" + id);
+
+ if (cb.checked) {
+ selected.push(id);
+ }
+ });
return selected;
}