1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 17:25:55 +00:00

plugins: add some xhrPost refactoring

This commit is contained in:
Andrew Dolgov
2018-11-30 15:23:48 +03:00
parent 764434a491
commit 2f961ee830
5 changed files with 54 additions and 99 deletions

View File

@@ -1690,31 +1690,6 @@ function setSelectionScore() {
}
}
/*
function updateScore(id) {
const pic = $$("#RROW-" + id + " .hlScorePic")[0];
if (pic) {
const query = "op=article&method=getScore&id=" + param_escape(id);
new Ajax.Request("backend.php", {
parameters: query,
onComplete: function (transport) {
console.log(transport.responseText);
const reply = JSON.parse(transport.responseText);
if (reply) {
pic.src = pic.src.replace(/score_.*?\.png/, reply["score_pic"]);
pic.setAttribute("score", reply["score"]);
pic.setAttribute("title", reply["score"]);
}
}
});
}
} */
function changeScore(id, pic) {
const score = pic.getAttribute("score");