summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-08-26 08:05:16 +0100
committerAndrew Dolgov <[email protected]>2005-08-26 08:05:16 +0100
commit9b30724847bcdcee2127d166f221b762d7981570 (patch)
treebfe5ac48efc5fa5b8f4dc647ddda859051a3d0e1
parent603c27f828a4db20eed63b9593b5bc579e8377fd (diff)
inline feed editor improvements
-rw-r--r--backend.php18
-rw-r--r--tt-rss.css9
2 files changed, 25 insertions, 2 deletions
diff --git a/backend.php b/backend.php
index c3805fc03..88fc5dcb3 100644
--- a/backend.php
+++ b/backend.php
@@ -525,11 +525,15 @@
while ($line = pg_fetch_assoc($result)) {
$class = ($lnum % 2) ? "even" : "odd";
-
+
$feed_id = $line["id"];
$edit_feed_id = $_GET["id"];
+ if ($subop == "edit" && $feed_id != $edit_feed_id) {
+ $class .= "Grayed";
+ }
+
print "<tr class=\"$class\" id=\"FEEDR-$feed_id\">";
$icon_file = ICONS_DIR . "/$feed_id.ico";
@@ -542,7 +546,7 @@
}
print "<td align='center'>$feed_icon</td>";
- if ($feed_id != $edit_feed_id || $subop != "edit" ) {
+ if (!$edit_feed_id || $subop != "edit") {
print "<td><input onclick='toggleSelectRow(this);'
type=\"checkbox\" id=\"FRCHK-".$line["id"]."\"></td>";
@@ -551,6 +555,16 @@
$line["title"] . "</td>";
print "<td><a href=\"javascript:editFeed($feed_id);\">" .
$line["feed_url"] . "</td>";
+
+
+ } else if ($feed_id != $edit_feed_id) {
+
+ print "<td><input onclick='toggleSelectRow(this);'
+ type=\"checkbox\" id=\"FRCHK-".$line["id"]."\"></td>";
+
+ print "<td>".$line["title"]."</td>";
+ print "<td>".$line["feed_url"]."</td>";
+
} else {
print "<td><input disabled=\"true\" type=\"checkbox\" id=\"FRCHK-".$line["id"]."\"></td>";
diff --git a/tt-rss.css b/tt-rss.css
index 2d3f07f53..b8c0b6c2c 100644
--- a/tt-rss.css
+++ b/tt-rss.css
@@ -184,6 +184,15 @@ table.main td.notify {
}
+.evenGrayed {
+ background-color : #f0f0f0;
+ color : #909090;
+}
+
+.oddGrayed {
+ color : #909090;
+}
+
.even {
background-color : #f0f0f0;
}