]> git.wh0rd.org Git - tt-rss.git/commitdiff
minor headlines select/deselect glitches fixes
authorAndrew Dolgov <fox@bah.spb.su>
Fri, 10 Mar 2006 11:08:19 +0000 (12:08 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Fri, 10 Mar 2006 11:08:19 +0000 (12:08 +0100)
functions.js
viewfeed.js

index db8f695ff82076efcbe92bbf0f8002fbd80eb828..58ef1bfc7b1b3cc803791637976ec99d9c588edd 100644 (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"; 
                
        }
index 2d52a6992acbaee7a373338c4498b254aa7408f5..aaeb4398587fd3d1dd59b1aa7a92b71cdc42071b 100644 (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);
-               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);
 
 }