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

filter edit dialog: add remove button

This commit is contained in:
Andrew Dolgov
2008-08-06 09:08:26 +01:00
parent ecace165c1
commit a44db887de
2 changed files with 34 additions and 68 deletions

View File

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