minor headlines select/deselect glitches fixes

This commit is contained in:
Andrew Dolgov 2006-03-10 12:08:19 +01:00
parent bbdd7213dc
commit 720200957d
2 changed files with 11 additions and 6 deletions

View File

@ -184,7 +184,6 @@ function cleanSelected(element) {
for (i = 0; i < content.rows.length; i++) {
content.rows[i].className = content.rows[i].className.replace("Selected", "");
}
}
function getVisibleUnreadHeadlines() {
@ -242,6 +241,12 @@ function markHeadline(id) {
row.className = row.className = "Active";
}
var check = document.getElementById("RCHK-" + id);
if (check) {
check.checked = true;
}
row.className = row.className + "Selected";
}

View File

@ -48,11 +48,11 @@ function view(id, feed_id) {
var content = m_document.getElementById("content-frame");
if (content) {
content.src = "backend.php?op=view&id=" + param_escape(id) +
"&feed=" + param_escape(feed_id);
selectTableRowsByIdPrefix('headlinesList', 'RROW-', 'RCHK-', false);
markHeadline(active_post_id);
}
}