From 720200957d8735a5281d7aafe5b04326bdb4619f Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 10 Mar 2006 12:08:19 +0100 Subject: [PATCH] minor headlines select/deselect glitches fixes --- functions.js | 7 ++++++- viewfeed.js | 10 +++++----- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/functions.js b/functions.js index db8f695f..58ef1bfc 100644 --- a/functions.js +++ b/functions.js @@ -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"; } diff --git a/viewfeed.js b/viewfeed.js index 2d52a699..aaeb4398 100644 --- a/viewfeed.js +++ b/viewfeed.js @@ -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); - markHeadline(active_post_id); - } + content.src = "backend.php?op=view&id=" + param_escape(id) + + "&feed=" + param_escape(feed_id); + + selectTableRowsByIdPrefix('headlinesList', 'RROW-', 'RCHK-', false); + markHeadline(active_post_id); } -- 2.39.5