From: Andrew Dolgov Date: Thu, 14 Jan 2010 16:36:52 +0000 (+0300) Subject: pref-filters: reset line class on section change X-Git-Tag: 1.4.0~36 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=ef9cab2339d7bfc00bcb3215bdfc82ce88fa306e;p=tt-rss.git pref-filters: reset line class on section change --- diff --git a/modules/pref-filters.php b/modules/pref-filters.php index 98fc16ec..0a1cc68a 100644 --- a/modules/pref-filters.php +++ b/modules/pref-filters.php @@ -377,20 +377,13 @@ while ($line = db_fetch_assoc($result)) { - $class = ($lnum % 2) ? "even" : "odd"; - $filter_id = $line["id"]; $edit_filter_id = $_REQUEST["id"]; $enabled = sql_bool_to_bool($line["enabled"]); $inverse = sql_bool_to_bool($line["inverse"]); - if ($subop == "edit" && $filter_id != $edit_filter_id) { - $class .= "Grayed"; - $this_row_id = ""; - } else { - $this_row_id = "id=\"FILRR-$filter_id\""; - } + $this_row_id = "id=\"FILRR-$filter_id\""; $line["filter_type_descr"] = __($line["filter_type_descr"]); $line["action_description"] = __($line["action_description"]); @@ -407,8 +400,11 @@ ".__('Field')." ".__('Params').""; + $lnum = 0; } + $class = ($lnum % 2) ? "even" : "odd"; + print ""; $line["reg_exp"] = htmlspecialchars($line["reg_exp"]);