From: Andrew Dolgov Date: Sat, 10 Dec 2005 19:37:44 +0000 (+0100) Subject: prefs: reset line numbering for feedlist on category change X-Git-Tag: schema_freeze_for_1.1.1~73 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=cb58d0dff2e3d3ad7173cf313dd31aeb86f6b93a;p=tt-rss.git prefs: reset line numbering for feedlist on category change --- diff --git a/backend.php b/backend.php index 8fc0d00b..9ffe267a 100644 --- a/backend.php +++ b/backend.php @@ -1673,8 +1673,6 @@ while ($line = db_fetch_assoc($result)) { - $class = ($lnum % 2) ? "even" : "odd"; - $feed_id = $line["id"]; $cat_id = $line["cat_id"]; @@ -1691,6 +1689,8 @@ if (get_pref($link, 'ENABLE_FEED_CATS') && $cur_cat_id != $cat_id) { + $lnum = 0; + print "$edit_cat"; print " @@ -1711,6 +1711,7 @@ $cur_cat_id = $cat_id; } + $class = ($lnum % 2) ? "even" : "odd"; $this_row_id = "id=\"FEEDR-$feed_id\""; print "";