1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-15 11:35:57 +00:00

add feed editor button to reset pubsub subscription state

This commit is contained in:
Andrew Dolgov
2011-04-02 14:39:46 +04:00
parent 7b8931889b
commit 5de271146b
2 changed files with 47 additions and 3 deletions

View File

@@ -1015,6 +1015,27 @@ function quickAddFilter() {
}
}
function resetPubSub(feed_id, title) {
var msg = __("Reset subscription? Tiny Tiny RSS will try to subscribe to the notification hub again on next feed update.").replace("%s", title);
if (title == undefined || confirm(msg)) {
notify_progress("Loading, please wait...");
var query = "?op=pref-feeds&quiet=1&subop=resetPubSub&ids=" + feed_id;
new Ajax.Request("backend.php", {
parameters: query,
onComplete: function(transport) {
dijit.byId("pubsubReset_Btn").attr('disabled', true);
notify_info("Subscription reset.");
} });
}
return false;
}
function unsubscribeFeed(feed_id, title) {
var msg = __("Unsubscribe from %s?").replace("%s", title);