inline feed editor improvements
This commit is contained in:
parent
603c27f828
commit
9b30724847
16
backend.php
16
backend.php
|
@ -530,6 +530,10 @@
|
||||||
|
|
||||||
$edit_feed_id = $_GET["id"];
|
$edit_feed_id = $_GET["id"];
|
||||||
|
|
||||||
|
if ($subop == "edit" && $feed_id != $edit_feed_id) {
|
||||||
|
$class .= "Grayed";
|
||||||
|
}
|
||||||
|
|
||||||
print "<tr class=\"$class\" id=\"FEEDR-$feed_id\">";
|
print "<tr class=\"$class\" id=\"FEEDR-$feed_id\">";
|
||||||
|
|
||||||
$icon_file = ICONS_DIR . "/$feed_id.ico";
|
$icon_file = ICONS_DIR . "/$feed_id.ico";
|
||||||
|
@ -542,7 +546,7 @@
|
||||||
}
|
}
|
||||||
print "<td align='center'>$feed_icon</td>";
|
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);'
|
print "<td><input onclick='toggleSelectRow(this);'
|
||||||
type=\"checkbox\" id=\"FRCHK-".$line["id"]."\"></td>";
|
type=\"checkbox\" id=\"FRCHK-".$line["id"]."\"></td>";
|
||||||
|
@ -551,6 +555,16 @@
|
||||||
$line["title"] . "</td>";
|
$line["title"] . "</td>";
|
||||||
print "<td><a href=\"javascript:editFeed($feed_id);\">" .
|
print "<td><a href=\"javascript:editFeed($feed_id);\">" .
|
||||||
$line["feed_url"] . "</td>";
|
$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 {
|
} else {
|
||||||
|
|
||||||
print "<td><input disabled=\"true\" type=\"checkbox\" id=\"FRCHK-".$line["id"]."\"></td>";
|
print "<td><input disabled=\"true\" type=\"checkbox\" id=\"FRCHK-".$line["id"]."\"></td>";
|
||||||
|
|
|
@ -184,6 +184,15 @@ table.main td.notify {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.evenGrayed {
|
||||||
|
background-color : #f0f0f0;
|
||||||
|
color : #909090;
|
||||||
|
}
|
||||||
|
|
||||||
|
.oddGrayed {
|
||||||
|
color : #909090;
|
||||||
|
}
|
||||||
|
|
||||||
.even {
|
.even {
|
||||||
background-color : #f0f0f0;
|
background-color : #f0f0f0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue