getSelectedFeedsFromBrowser: code cleanup
This commit is contained in:
parent
b1b3344b82
commit
3c8e3b1572
18
functions.js
18
functions.js
|
@ -871,22 +871,18 @@ function remove_splash() {
|
||||||
|
|
||||||
function getSelectedFeedsFromBrowser() {
|
function getSelectedFeedsFromBrowser() {
|
||||||
|
|
||||||
var list = $("browseFeedList");
|
var list = $$("#browseFeedList li[id*=FBROW]");
|
||||||
|
|
||||||
var selected = new Array();
|
var selected = new Array();
|
||||||
|
|
||||||
for (i = 0; i < list.childNodes.length; i++) {
|
list.each(function(child) {
|
||||||
var child = list.childNodes[i];
|
var id = child.id.replace("FBROW-", "");
|
||||||
if (child.id && child.id.match("FBROW-")) {
|
var cb = $("FBCHK-" + id);
|
||||||
var id = child.id.replace("FBROW-", "");
|
|
||||||
|
|
||||||
var cb = $("FBCHK-" + id);
|
if (cb.checked) {
|
||||||
|
selected.push(id);
|
||||||
if (cb.checked) {
|
|
||||||
selected.push(id);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
});
|
||||||
|
|
||||||
return selected;
|
return selected;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue