1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-14 04:55:55 +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

@@ -604,17 +604,21 @@ function quickMenuGo(opid) {
}
}
function unsubscribeFeed(feed_id) {
function unsubscribeFeed(feed_id, title) {
notify_progress("Removing feed...");
var query = "backend.php?op=pref-feeds&quiet=1&subop=remove&ids=" + feed_id;
var msg = __("Unsubscribe from %s?").replace("%s", title);
new Ajax.Request(query, {
onComplete: function(transport) {
dlg_frefresh_callback(transport, feed_id);
} });
if (title == undefined || confirm(msg)) {
notify_progress("Removing feed...");
var query = "backend.php?op=pref-feeds&quiet=1&subop=remove&ids=" + feed_id;
new Ajax.Request(query, {
onComplete: function(transport) {
dlg_frefresh_callback(transport, feed_id);
} });
}
return false;
}