mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-15 10:05:58 +00:00
UNDO: add quick unsubscribe button to prefs/feedlist
This commit is contained in:
28
prefs.js
28
prefs.js
@@ -508,7 +508,6 @@ function editFeed(feed) {
|
||||
xmlhttp.onreadystatechange=infobox_callback;
|
||||
xmlhttp.send(null);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
function editFeedCat(cat) {
|
||||
@@ -692,33 +691,6 @@ 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)) {
|
||||
|
||||
Reference in New Issue
Block a user