summaryrefslogtreecommitdiff
path: root/tt-rss.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2008-04-30 09:10:59 +0100
committerAndrew Dolgov <[email protected]>2008-04-30 09:10:59 +0100
commit546499a9f37372d239d16b538e372faf641f5aa5 (patch)
tree2e117115435089ff48c74c0f747c7df23844ce95 /tt-rss.js
parent48ddbb3380f096ef5005fc3b86a48b933a297b5d (diff)
finish initial work on scoring
Diffstat (limited to 'tt-rss.js')
-rw-r--r--tt-rss.js19
1 files changed, 19 insertions, 0 deletions
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");
+ }
+}