diff options
author | Andrew Dolgov <[email protected]> | 2006-01-09 14:55:39 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2006-01-09 14:55:39 +0100 |
commit | 06d1a1c15828e541ee57632e7031100e3f3e2f49 (patch) | |
tree | 8d72734ff8ffd33a9ff7b6fc61447e4becd01783 /viewfeed.js | |
parent | 380539cebd3289dd000b86fd328cfeb45e8d8602 (diff) |
fix checkbox handling in combined mode
Diffstat (limited to 'viewfeed.js')
-rw-r--r-- | viewfeed.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/viewfeed.js b/viewfeed.js index c25718a59..c452d0aa9 100644 --- a/viewfeed.js +++ b/viewfeed.js @@ -352,17 +352,23 @@ function cdmSelectArticles(mode) { var child = container.childNodes[i]; if (child.id.match("RROW-")) { -// var aid = child.id.replace("RROW-", ""); + var aid = child.id.replace("RROW-", ""); + + var cb = document.getElementById("RCHK-" + aid); + if (mode == "all") { if (!child.className.match("Selected")) { child.className = child.className + "Selected"; + cb.checked = true; } } else if (mode == "unread") { if (child.className.match("Unread") && !child.className.match("Selected")) { child.className = child.className + "Selected"; + cb.checked = true; } } else { child.className = child.className.replace("Selected", ""); + cb.checked = false; } } } |