summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-11-30 15:23:48 +0300
committerAndrew Dolgov <[email protected]>2018-11-30 15:23:48 +0300
commit2f961ee830af21166d22bf3fae104291f614e7dd (patch)
tree1bc280bf9d8f480b70200fcf6dcc1d9406874bd2 /js
parent764434a491ee0b42b70d262fa49aee2b6a9e93a8 (diff)
plugins: add some xhrPost refactoring
Diffstat (limited to 'js')
-rwxr-xr-xjs/viewfeed.js25
1 files changed, 0 insertions, 25 deletions
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");