From 88feb4421685eec58e9f75e01f1661bd0313317a Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 1 Dec 2005 13:52:18 +0100 Subject: [PATCH] simplify toggleStarred() for selection --- viewfeed.js | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/viewfeed.js b/viewfeed.js index 0dae392df..126a76920 100644 --- a/viewfeed.js +++ b/viewfeed.js @@ -236,18 +236,7 @@ function toggleUnread() { var rows = getSelectedTableRowIds("headlinesList", "RROW", "RCHK"); for (i = 0; i < rows.length; i++) { - var row = document.getElementById("RROW-" + rows[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"; - } - } + toggleMark(i); } if (rows.length > 0) {