summaryrefslogtreecommitdiff
path: root/js/Headlines.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2023-10-25 12:55:09 +0300
committerAndrew Dolgov <[email protected]>2023-10-25 12:55:09 +0300
commit865ecc87963dc3b26e66296616eef2a1cc41ac3f (patch)
treebf2ecd8a391103bdb2c8b70cd33c47467310754b /js/Headlines.js
parent0a5507d3bd79d04c860455664f919bf8e7274fda (diff)
move to psr-4 autoloader
Diffstat (limited to 'js/Headlines.js')
-rwxr-xr-xjs/Headlines.js20
1 files changed, 10 insertions, 10 deletions
diff --git a/js/Headlines.js b/js/Headlines.js
index 5706377f8..6a439f744 100755
--- a/js/Headlines.js
+++ b/js/Headlines.js
@@ -160,26 +160,26 @@ const Headlines = {
if (ops.tmark.length != 0)
promises.push(xhr.post("backend.php",
- {op: "rpc", method: "markSelected", "ids[]": ops.tmark, cmode: 2}));
+ {op: "RPC", method: "markSelected", "ids[]": ops.tmark, cmode: 2}));
if (ops.tpub.length != 0)
promises.push(xhr.post("backend.php",
- {op: "rpc", method: "publishSelected", "ids[]": ops.tpub, cmode: 2}));
+ {op: "RPC", method: "publishSelected", "ids[]": ops.tpub, cmode: 2}));
if (ops.read.length != 0)
promises.push(xhr.post("backend.php",
- {op: "rpc", method: "catchupSelected", "ids[]": ops.read, cmode: 0}));
+ {op: "RPC", method: "catchupSelected", "ids[]": ops.read, cmode: 0}));
if (ops.unread.length != 0)
promises.push(xhr.post("backend.php",
- {op: "rpc", method: "catchupSelected", "ids[]": ops.unread, cmode: 1}));
+ {op: "RPC", method: "catchupSelected", "ids[]": ops.unread, cmode: 1}));
const scores = Object.keys(ops.rescore);
if (scores.length != 0) {
scores.forEach((score) => {
promises.push(xhr.post("backend.php",
- {op: "article", method: "setScore", "ids[]": ops.rescore[score], score: score}));
+ {op: "Article", method: "setScore", "ids[]": ops.rescore[score], score: score}));
});
}
@@ -1132,7 +1132,7 @@ const Headlines = {
}
const query = {
- op: "article", method: "removeFromLabel",
+ op: "Article", method: "removeFromLabel",
ids: ids.toString(), lid: id
};
@@ -1149,7 +1149,7 @@ const Headlines = {
}
const query = {
- op: "article", method: "assignToLabel",
+ op: "Article", method: "assignToLabel",
ids: ids.toString(), lid: id
};
@@ -1181,7 +1181,7 @@ const Headlines = {
return;
}
- const query = {op: "rpc", method: "delete", ids: rows.toString()};
+ const query = {op: "RPC", method: "delete", ids: rows.toString()};
xhr.json("backend.php", query, () => {
Feeds.reloadCurrent();
@@ -1586,7 +1586,7 @@ const Headlines = {
menu.addChild(new dijit.MenuItem({
label: __("Open site"),
onClick: function() {
- App.postOpenWindow("backend.php", {op: "feeds", method: "opensite",
+ App.postOpenWindow("backend.php", {op: "Feeds", method: "opensite",
feed_id: this.getParent().currentTarget.getAttribute("data-feed-id"), csrf_token: __csrf_token});
}}));
@@ -1596,7 +1596,7 @@ const Headlines = {
label: __("Debug feed"),
onClick: function() {
/* global __csrf_token */
- App.postOpenWindow("backend.php", {op: "feeds", method: "updatedebugger",
+ App.postOpenWindow("backend.php", {op: "Feeds", method: "updatedebugger",
feed_id: this.getParent().currentTarget.getAttribute("data-feed-id"), csrf_token: __csrf_token});
}}));