]> git.wh0rd.org Git - tt-rss.git/commitdiff
prefs: reset line numbering for feedlist on category change
authorAndrew Dolgov <fox@bah.spb.su>
Sat, 10 Dec 2005 19:37:44 +0000 (20:37 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Sat, 10 Dec 2005 19:37:44 +0000 (20:37 +0100)
backend.php

index 8fc0d00b4702476e734183f8776dde35256990d7..9ffe267a69092a4e87a229267b340963864116b0 100644 (file)
                        
                        while ($line = db_fetch_assoc($result)) {
        
-                               $class = ($lnum % 2) ? "even" : "odd";
-       
                                $feed_id = $line["id"];
                                $cat_id = $line["cat_id"];
 
 
 
                                if (get_pref($link, 'ENABLE_FEED_CATS') && $cur_cat_id != $cat_id) {
+                                       $lnum = 0;
+                               
                                        print "<tr><td colspan=\"6\" class=\"feedEditCat\">$edit_cat</td></tr>";
 
                                        print "<tr class=\"title\">
                                        $cur_cat_id = $cat_id;
                                }
 
+                               $class = ($lnum % 2) ? "even" : "odd";
                                $this_row_id = "id=\"FEEDR-$feed_id\"";
 
                                print "<tr class=\"$class\" $this_row_id>";