From 546499a9f37372d239d16b538e372faf641f5aa5 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 30 Apr 2008 09:10:59 +0100 Subject: finish initial work on scoring --- tt-rss.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'tt-rss.js') diff --git a/tt-rss.js b/tt-rss.js index e165ec1c7..d127e03d2 100644 --- a/tt-rss.js +++ b/tt-rss.js @@ -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"); + } +} -- cgit v1.2.3