mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 19:55:55 +00:00
fix checkbox handling in combined mode
This commit is contained in:
@@ -352,17 +352,23 @@ function cdmSelectArticles(mode) {
|
|||||||
var child = container.childNodes[i];
|
var child = container.childNodes[i];
|
||||||
|
|
||||||
if (child.id.match("RROW-")) {
|
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 (mode == "all") {
|
||||||
if (!child.className.match("Selected")) {
|
if (!child.className.match("Selected")) {
|
||||||
child.className = child.className + "Selected";
|
child.className = child.className + "Selected";
|
||||||
|
cb.checked = true;
|
||||||
}
|
}
|
||||||
} else if (mode == "unread") {
|
} else if (mode == "unread") {
|
||||||
if (child.className.match("Unread") && !child.className.match("Selected")) {
|
if (child.className.match("Unread") && !child.className.match("Selected")) {
|
||||||
child.className = child.className + "Selected";
|
child.className = child.className + "Selected";
|
||||||
|
cb.checked = true;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
child.className = child.className.replace("Selected", "");
|
child.className = child.className.replace("Selected", "");
|
||||||
|
cb.checked = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user