simplify toggleStarred() for selection
This commit is contained in:
parent
9932fb068b
commit
88feb44216
13
viewfeed.js
13
viewfeed.js
|
@ -236,18 +236,7 @@ function toggleUnread() {
|
||||||
var rows = getSelectedTableRowIds("headlinesList", "RROW", "RCHK");
|
var rows = getSelectedTableRowIds("headlinesList", "RROW", "RCHK");
|
||||||
|
|
||||||
for (i = 0; i < rows.length; i++) {
|
for (i = 0; i < rows.length; i++) {
|
||||||
var row = document.getElementById("RROW-" + rows[i]);
|
toggleMark(i);
|
||||||
if (row) {
|
|
||||||
var nc = row.className;
|
|
||||||
nc = nc.replace("Unread", "");
|
|
||||||
nc = nc.replace("Selected", "");
|
|
||||||
|
|
||||||
if (row.className.match("Unread")) {
|
|
||||||
row.className = nc + "Selected";
|
|
||||||
} else {
|
|
||||||
row.className = nc + "UnreadSelected";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rows.length > 0) {
|
if (rows.length > 0) {
|
||||||
|
|
Loading…
Reference in New Issue