prefs: further feedlist tweaks (3)

This commit is contained in:
Andrew Dolgov 2005-12-10 21:06:41 +01:00
parent 841fe9a17e
commit 327a3bbe1a
3 changed files with 13 additions and 17 deletions

View File

@ -1377,9 +1377,9 @@
print "<div align='center'> print "<div align='center'>
<input type='submit' class='button' <input type='submit' class='button'
onclick=\"closeInfoBox()\" value=\"Cancel\"> onclick=\"feedEditCancel()\" value=\"Cancel\">
<input type=\"submit\" class=\"button\" <input type=\"submit\" class=\"button\"
onclick=\"javascript:feedEditSave()\" value=\"Save\"></div>"; onclick=\"feedEditSave()\" value=\"Save\"></div>";
return; return;
} }
@ -1649,7 +1649,6 @@
if (!get_pref($link, 'ENABLE_FEED_CATS')) { if (!get_pref($link, 'ENABLE_FEED_CATS')) {
print "<tr class=\"title\"> print "<tr class=\"title\">
<td width='1%'>&nbsp;</td>
<td width='5%' align='center'>Select</td> <td width='5%' align='center'>Select</td>
<td width='30%'><a href=\"javascript:updateFeedList('title')\">Title</a></td> <td width='30%'><a href=\"javascript:updateFeedList('title')\">Title</a></td>
<td width='30%'><a href=\"javascript:updateFeedList('feed_url')\">Link</a></td> <td width='30%'><a href=\"javascript:updateFeedList('feed_url')\">Link</a></td>
@ -1684,7 +1683,6 @@
print "<tr><td colspan=\"6\" class=\"feedEditCat\">$edit_cat</td></tr>"; print "<tr><td colspan=\"6\" class=\"feedEditCat\">$edit_cat</td></tr>";
print "<tr class=\"title\"> print "<tr class=\"title\">
<td width='1%'>&nbsp;</td>
<td width='5%' align='center'>Select</td> <td width='5%' align='center'>Select</td>
<td width='30%'><a href=\"javascript:updateFeedList('title')\">Title</a></td> <td width='30%'><a href=\"javascript:updateFeedList('title')\">Title</a></td>
<td width='30%'><a href=\"javascript:updateFeedList('feed_url')\">Link</a></td> <td width='30%'><a href=\"javascript:updateFeedList('feed_url')\">Link</a></td>
@ -1702,12 +1700,11 @@
$icon_file = ICONS_DIR . "/$feed_id.ico"; $icon_file = ICONS_DIR . "/$feed_id.ico";
if (file_exists($icon_file) && filesize($icon_file) > 0) { if (file_exists($icon_file) && filesize($icon_file) > 0) {
$feed_icon = "<img width=\"16\" height=\"16\" $feed_icon = "<img class=\"tinyFeedIcon\" src=\"" . ICONS_URL . "/$feed_id.ico\">";
src=\"" . ICONS_URL . "/$feed_id.ico\">";
} else { } else {
$feed_icon = "&nbsp;"; $feed_icon = "<img class=\"tinyFeedIcon\" src=\"images/blank_icon.gif\">";
} }
print "<td class='feedIcon'>$feed_icon</td>"; // print "<td class='feedIcon'>$feed_icon</td>";
print "<td class='feedSelect'><input onclick='toggleSelectRow(this);' print "<td class='feedSelect'><input onclick='toggleSelectRow(this);'
type=\"checkbox\" id=\"FRCHK-".$line["id"]."\"></td>"; type=\"checkbox\" id=\"FRCHK-".$line["id"]."\"></td>";
@ -1716,7 +1713,7 @@
$edit_link = truncate_string($edit_link, 60); $edit_link = truncate_string($edit_link, 60);
print "<td><a href=\"javascript:editFeed($feed_id);\">" . print "<td><a href=\"javascript:editFeed($feed_id);\">" .
$edit_title . "</a></td>"; "$feed_icon $edit_title" . "</a></td>";
print "<td><a href=\"javascript:editFeed($feed_id);\">" . print "<td><a href=\"javascript:editFeed($feed_id);\">" .
$edit_link . "</a></td>"; $edit_link . "</a></td>";

View File

@ -604,13 +604,15 @@ function feedEditCancel() {
return return
} }
closeInfoBox();
active_feed = false; active_feed = false;
notify("Operation cancelled."); notify("Operation cancelled.");
xmlhttp.open("GET", "backend.php?op=pref-feeds", true); /* xmlhttp.open("GET", "backend.php?op=pref-feeds", true);
xmlhttp.onreadystatechange=feedlist_callback; xmlhttp.onreadystatechange=feedlist_callback;
xmlhttp.send(null); xmlhttp.send(null); */
} }

View File

@ -238,6 +238,7 @@ ul.feedList img, img.tinyFeedIcon {
margin : 0px 3px 0px 0px; margin : 0px 3px 0px 0px;
width : 16px; width : 16px;
height : 16px; height : 16px;
border-width : 0px;
} }
h1 { h1 {
@ -442,11 +443,7 @@ input {
/* preferences */ /* preferences */
table.prefFeedList tr.title td, table.prefFilterList tr.title td, tr.title td {
table.headlinesList tr.title td, table.prefLabelList tr.title td,
table.prefPrefsList tr.title td,
table.prefFeedCatList tr.title td,
table.prefUserList tr.title td {
font-weight : bold; font-weight : bold;
border-width : 0px 0px 1px 0px; border-width : 0px 0px 1px 0px;
border-color : #f0f0f0; border-color : #f0f0f0;
@ -454,10 +451,10 @@ table.prefFeedList tr.title td, table.prefFilterList tr.title td,
font-size : x-small; font-size : x-small;
} }
table.prefFeedList td.feedEditCat { table.prefFeedList td.feedEditCat {
font-size : large; font-size : large;
font-weight : bold; font-weight : bold;
color : black;
padding : 5px 0px 5px 0px; padding : 5px 0px 5px 0px;
} }