diff options
Diffstat (limited to 'prefs.js')
-rw-r--r-- | prefs.js | 28 |
1 files changed, 28 insertions, 0 deletions
@@ -508,6 +508,7 @@ function editFeed(feed) { xmlhttp.onreadystatechange=infobox_callback; xmlhttp.send(null); + return false; } function editFeedCat(cat) { @@ -691,6 +692,33 @@ function removeSelectedFeeds() { 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() { if (!xmlhttp_ready(xmlhttp)) { |