summaryrefslogtreecommitdiff
path: root/tt-rss.js
diff options
context:
space:
mode:
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");
+ }
+}