UNDO: add quick unsubscribe button to prefs/feedlist

This commit is contained in:
Andrew Dolgov 2008-07-25 08:48:15 +01:00
parent 9123c2efd6
commit fe5bfa0042
3 changed files with 1 additions and 44 deletions

View File

@ -968,7 +968,6 @@
$cat_id = $line["cat_id"]; $cat_id = $line["cat_id"];
$edit_title = htmlspecialchars($line["title"]); $edit_title = htmlspecialchars($line["title"]);
$feed_title = $edit_title;
$edit_cat = htmlspecialchars($line["category"]); $edit_cat = htmlspecialchars($line["category"]);
$hidden = sql_bool_to_bool($line["hidden"]); $hidden = sql_bool_to_bool($line["hidden"]);
@ -1064,11 +1063,6 @@
$parent_title)</span>"; $parent_title)</span>";
} }
$ops = "<span class=\"feedOps\">
(<a title=\"".__('Unsubscribe')."\"
href='javascript:removeFeed($feed_id, \"$feed_title\")'>x</a>)
</span>";
print "<td $onclick>" . "$edit_title $parent_title" . "</td>"; print "<td $onclick>" . "$edit_title $parent_title" . "</td>";
if ($show_last_article_info) { if ($show_last_article_info) {
@ -1076,7 +1070,7 @@
"$last_article</td>"; "$last_article</td>";
} }
print "<td align='right'>$ops $last_updated</td>"; print "<td $onclick align='right'>$last_updated</td>";
print "</tr>"; print "</tr>";

View File

@ -508,7 +508,6 @@ function editFeed(feed) {
xmlhttp.onreadystatechange=infobox_callback; xmlhttp.onreadystatechange=infobox_callback;
xmlhttp.send(null); xmlhttp.send(null);
return false;
} }
function editFeedCat(cat) { function editFeedCat(cat) {
@ -692,33 +691,6 @@ function removeSelectedFeeds() {
return false; return false;
} }
function removeFeed(id, title) {
if (!xmlhttp_ready(xmlhttp)) {
printLockingError();
return
}
if (id) {
var msg = __("Unsubscribe from %s?").replace("%s", title);
var ok = confirm(msg);
if (ok) {
notify_progress("Unsubscribing...");
xmlhttp.open("GET", "backend.php?op=pref-feeds&subop=remove&ids="+
param_escape(id), true);
xmlhttp.onreadystatechange=feedlist_callback;
xmlhttp.send(null);
}
}
return false;
}
function clearSelectedFeeds() { function clearSelectedFeeds() {
if (!xmlhttp_ready(xmlhttp)) { if (!xmlhttp_ready(xmlhttp)) {

View File

@ -442,15 +442,6 @@ div.feedEditSearch {
float : right; float : right;
} }
table.prefFeedList span.feedOps {
display : none;
margin-right : 1em;
}
table.prefFeedList tr:hover span.feedOps {
display : inline;
}
table.prefFeedList td.feedEditCat { table.prefFeedList td.feedEditCat {
font-weight : bold; font-weight : bold;
border-width : 0px 0px 1px 0px; border-width : 0px 0px 1px 0px;