diff options
author | Andrew Dolgov <[email protected]> | 2021-02-19 11:28:14 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-02-19 11:28:14 +0300 |
commit | bb4e4282f46824308aebc2eaeac29fa29f8687ad (patch) | |
tree | 8355547f2cf4baefc4a41146d27dcbd3240f724a /js/Feeds.js | |
parent | 6b43b788d909ce20f07f29f9f3ccd2f6a8715616 (diff) |
migrate a bunch of xhrPost invocations
Diffstat (limited to 'js/Feeds.js')
-rw-r--r-- | js/Feeds.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/Feeds.js b/js/Feeds.js index 7cefe2235..e9681953e 100644 --- a/js/Feeds.js +++ b/js/Feeds.js @@ -1,6 +1,6 @@ 'use strict' -/* global __, App, Headlines, xhrPost, xhrJson, dojo, dijit, Form, fox, PluginHost, Notify, $$, fox */ +/* global __, App, Headlines, xhrPost, xhr, dojo, dijit, fox, PluginHost, Notify, fox */ const Feeds = { counters_last_request: 0, @@ -299,7 +299,7 @@ const Feeds = { toggleUnread: function() { const hide = !App.getInitParam("hide_read_feeds"); - xhrPost("backend.php", {op: "rpc", method: "setpref", key: "HIDE_READ_FEEDS", value: hide}, () => { + xhr.post("backend.php", {op: "rpc", method: "setpref", key: "HIDE_READ_FEEDS", value: hide}, () => { this.hideOrShowFeeds(hide); App.setInitParam("hide_read_feeds", hide); }); @@ -393,7 +393,7 @@ const Feeds = { Notify.progress("Marking all feeds as read..."); - xhrPost("backend.php", {op: "feeds", method: "catchupAll"}, () => { + xhr.post("backend.php", {op: "feeds", method: "catchupAll"}, () => { this.requestCounters(true); this.reloadCurrent(); }); |