diff options
| author | Andrew Dolgov <fox@madoka.spb.ru> | 2008-04-30 09:10:59 +0100 |
|---|---|---|
| committer | Andrew Dolgov <fox@madoka.spb.ru> | 2008-04-30 09:10:59 +0100 |
| commit | 546499a9f37372d239d16b538e372faf641f5aa5 (patch) | |
| tree | 2e117115435089ff48c74c0f747c7df23844ce95 /tt-rss.js | |
| parent | 48ddbb3380f096ef5005fc3b86a48b933a297b5d (diff) | |
finish initial work on scoring
Diffstat (limited to 'tt-rss.js')
| -rw-r--r-- | tt-rss.js | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -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"); + } +} |