summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2006-10-04 06:44:47 +0100
committerAndrew Dolgov <[email protected]>2006-10-04 06:44:47 +0100
commit81780e8f4f8667c71f2c8bfca3c6a024bb51a849 (patch)
treea99eef0a05d75c0f155c72696ccb68f4913e1570 /modules
parent9c4837460c168b248e7f4a45d5b020e878bc3f91 (diff)
preselect active feed cat on edit
Diffstat (limited to 'modules')
-rw-r--r--modules/pref-feeds.php11
1 files changed, 7 insertions, 4 deletions
diff --git a/modules/pref-feeds.php b/modules/pref-feeds.php
index 46b03e891..7e5868aed 100644
--- a/modules/pref-feeds.php
+++ b/modules/pref-feeds.php
@@ -660,10 +660,13 @@
$cat_id = $line["id"];
$edit_cat_id = $_GET["id"];
-
- if ($action == "edit" && $cat_id != $edit_cat_id) {
- $class .= "Grayed";
- $this_row_id = "";
+
+ if ($action == "edit" && $cat_id == $edit_cat_id) {
+ $class .= "Selected";
+ $this_row_id = "";
+ } else if ($action == "edit" && $cat_id != $edit_cat_id) {
+ $class .= "Grayed";
+ $this_row_id = "";
} else {
$this_row_id = "id=\"FCATR-$cat_id\"";
}