1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-14 10:26:02 +00:00

bayes: properly reset score when going good -> ugly

article: add helper to refresh article score pic, properly set scorepic title
This commit is contained in:
Andrew Dolgov
2015-06-17 22:04:32 +03:00
parent 308c55c0f1
commit a72cd54ce1
4 changed files with 45 additions and 3 deletions

View File

@@ -2,12 +2,13 @@ function bayesTrain(id, train_up) {
try {
var query = "backend.php?op=pluginhandler&plugin=af_sort_bayes&method=trainArticle&article_id=" + param_escape(id) +
"&train_up=" + train_up;
"&train_up=" + param_escape(train_up);
new Ajax.Request("backend.php", {
parameters: query,
onComplete: function(transport) {
notify(transport.responseText);
updateScore(id);
} });
} catch (e) {