1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-20 15:41:29 +00:00

filter editor: add button to rescore all feeds

This commit is contained in:
Andrew Dolgov
2008-05-04 05:46:14 +01:00
parent f2f1d9d70d
commit 95a948a574
4 changed files with 82 additions and 2 deletions

View File

@@ -1931,7 +1931,7 @@ function rescoreSelectedFeeds() {
var ok = confirm(__("Rescore articles in selected feeds?"));
if (ok) {
notify_progress("Rescoring selected labels...");
notify_progress("Rescoring selected feeds...");
xmlhttp.open("GET", "backend.php?op=pref-feeds&subop=rescore&quiet=1&ids="+
param_escape(sel_rows.toString()), true);
@@ -1945,3 +1945,16 @@ function rescoreSelectedFeeds() {
return false;
}
function rescore_all_feeds() {
var ok = confirm(__("Rescore all articles? This operation may take a lot of time."));
if (ok) {
notify_progress("Rescoring feeds...");
xmlhttp.open("GET", "backend.php?op=pref-feeds&subop=rescoreAll&quiet=1", true);
xmlhttp.onreadystatechange=notify_callback;
xmlhttp.send(null);
}
}