]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix checkbox handling in combined mode
authorAndrew Dolgov <fox@bah.spb.su>
Mon, 9 Jan 2006 13:55:39 +0000 (14:55 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Mon, 9 Jan 2006 13:55:39 +0000 (14:55 +0100)
viewfeed.js

index c25718a59d521801a17dfcabaa2c45b6488fb1e9..c452d0aa9043ea69c4d100085ec15f04866644c0 100644 (file)
@@ -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;
                        }
                }               
        }