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:
19
tt-rss.js
19
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");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user