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

finish initial work on scoring

This commit is contained in:
Andrew Dolgov
2008-04-30 09:10:59 +01:00
parent 48ddbb3380
commit 546499a9f3
6 changed files with 68 additions and 5 deletions

View File

@@ -838,3 +838,22 @@ function viewLimitChanged() {
cache_empty();
return viewCurrentFeed(0, '')
}
function adjustArticleScore(id, score) {
try {
var pr = prompt(__("Assign score to article:"), score);
if (pr != undefined) {
var query = "backend.php?op=rpc&subop=setScore&id=" + id + "&score=" + pr;
new Ajax.Request(query, {
onComplete: function(transport) {
viewCurrentFeed();
} });
}
} catch (e) {
exception_error(e, "adjustArticleScore");
}
}