From 2f961ee830af21166d22bf3fae104291f614e7dd Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 30 Nov 2018 15:23:48 +0300 Subject: plugins: add some xhrPost refactoring --- js/viewfeed.js | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'js') diff --git a/js/viewfeed.js b/js/viewfeed.js index 23e057587..966d0d688 100755 --- a/js/viewfeed.js +++ b/js/viewfeed.js @@ -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"); -- cgit v1.2.3