1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-15 07:55:56 +00:00

feed editor: add button to unsubscribe feed

This commit is contained in:
Andrew Dolgov
2008-08-06 09:18:02 +01:00
parent a44db887de
commit c8d5dcfe2b
3 changed files with 46 additions and 8 deletions

View File

@@ -2182,3 +2182,31 @@ function removeFilter(id, title) {
return false;
}
function unsubscribeFeed(id, title) {
if (!xmlhttp_ready(xmlhttp)) {
printLockingError();
return
}
var msg = __("Unsubscribe from %s?").replace("%s", title);
var ok = confirm(msg);
if (ok) {
closeInfoBox();
notify_progress("Removing feed...");
xmlhttp.open("GET", "backend.php?op=pref-feeds&subop=remove&ids="+
param_escape(id), true);
xmlhttp.onreadystatechange=filterlist_callback;
xmlhttp.send(null);
}
return false;
return false;
}