diff options
author | Andrew Dolgov <[email protected]> | 2018-12-02 22:08:18 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2018-12-02 22:08:18 +0300 |
commit | 5ead558e435dd8d58f6666b445374b0005a60337 (patch) | |
tree | 1756146e928435272554257056c748afbe1de24f /js/Headlines.js | |
parent | ac8361e6f6e81e25d3c17e14b973af53a9b93885 (diff) |
move Utils to AppBase where it belongs
Diffstat (limited to 'js/Headlines.js')
-rwxr-xr-x | js/Headlines.js | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/js/Headlines.js b/js/Headlines.js index 1bcd35896..3ec83170e 100755 --- a/js/Headlines.js +++ b/js/Headlines.js @@ -222,7 +222,7 @@ define(["dojo/_base/declare"], function (declare) { } }, onLoaded: function(transport, offset) { - const reply = Utils.handleRpcJson(transport); + const reply = App.handleRpcJson(transport); console.log("Headlines.onLoaded: offset=", offset); @@ -438,7 +438,7 @@ define(["dojo/_base/declare"], function (declare) { Notify.progress("Loading, please wait..."); xhrPost("backend.php", query, (transport) => { - Utils.handleRpcJson(transport); + App.handleRpcJson(transport); if (callback) callback(transport); }); }, @@ -460,7 +460,7 @@ define(["dojo/_base/declare"], function (declare) { }; xhrPost("backend.php", query, (transport) => { - Utils.handleRpcJson(transport); + App.handleRpcJson(transport); }); }, selectionTogglePublished: function(ids) { @@ -482,7 +482,7 @@ define(["dojo/_base/declare"], function (declare) { }; xhrPost("backend.php", query, (transport) => { - Utils.handleRpcJson(transport); + App.handleRpcJson(transport); }); } }, @@ -507,7 +507,7 @@ define(["dojo/_base/declare"], function (declare) { if (!client_only) xhrPost("backend.php", query, (transport) => { - Utils.handleRpcJson(transport); + App.handleRpcJson(transport); }); } }, @@ -533,7 +533,7 @@ define(["dojo/_base/declare"], function (declare) { if (!client_only) xhrPost("backend.php", query, (transport) => { - Utils.handleRpcJson(transport); + App.handleRpcJson(transport); }); } @@ -654,7 +654,7 @@ define(["dojo/_base/declare"], function (declare) { if (row.className != origClassName) xhrPost("backend.php", {op: "rpc", method: "catchupSelected", cmode: cmode, ids: id}, (transport) => { - Utils.handleRpcJson(transport); + App.handleRpcJson(transport); }); } }, @@ -672,7 +672,7 @@ define(["dojo/_base/declare"], function (declare) { }; xhrPost("backend.php", query, (transport) => { - Utils.handleRpcJson(transport); + App.handleRpcJson(transport); this.onLabelsUpdated(transport); }); }, @@ -690,7 +690,7 @@ define(["dojo/_base/declare"], function (declare) { }; xhrPost("backend.php", query, (transport) => { - Utils.handleRpcJson(transport); + App.handleRpcJson(transport); this.onLabelsUpdated(transport); }); }, @@ -721,7 +721,7 @@ define(["dojo/_base/declare"], function (declare) { const query = {op: "rpc", method: "delete", ids: rows.toString()}; xhrPost("backend.php", query, (transport) => { - Utils.handleRpcJson(transport); + App.handleRpcJson(transport); Feeds.reloadCurrent(); }); }, @@ -850,7 +850,7 @@ define(["dojo/_base/declare"], function (declare) { const query = {op: "rpc", method: op, ids: rows.toString()}; xhrPost("backend.php", query, (transport) => { - Utils.handleRpcJson(transport); + App.handleRpcJson(transport); Feeds.reloadCurrent(); }); }, @@ -888,7 +888,7 @@ define(["dojo/_base/declare"], function (declare) { }; xhrPost("backend.php", query, (transport) => { - const reply = Utils.handleRpcJson(transport); + const reply = App.handleRpcJson(transport); if (reply) { const batch = reply.ids; @@ -965,7 +965,7 @@ define(["dojo/_base/declare"], function (declare) { }; xhrPost("backend.php", query, (transport) => { - Utils.handleRpcJson(transport); + App.handleRpcJson(transport); }); } } |