diff options
| author | Géry Debongnie <ged@odoo.com> | 2016-06-16 12:20:20 +0200 |
|---|---|---|
| committer | Géry Debongnie <ged@odoo.com> | 2016-06-17 13:24:54 +0200 |
| commit | 611322c36b5dcf73c9f4286a083cd150672d2319 (patch) | |
| tree | 67bf42bc82da79dece9fd5d54787798145164f29 /addons/web/static/src/js/framework/ajax.js | |
| parent | 916b43afab7dc095d768a29d5be76579f6c73c68 (diff) | |
[REF] web: add ajax.rpc and change some dependencies
Diffstat (limited to 'addons/web/static/src/js/framework/ajax.js')
| -rw-r--r-- | addons/web/static/src/js/framework/ajax.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/addons/web/static/src/js/framework/ajax.js b/addons/web/static/src/js/framework/ajax.js index 71c742b026c..50e0e2f0c59 100644 --- a/addons/web/static/src/js/framework/ajax.js +++ b/addons/web/static/src/js/framework/ajax.js @@ -119,6 +119,11 @@ function jsonpRpc(url, fct_name, params, settings) { }); } +// helper function to make a rpc with a function name hardcoded to 'call' +function rpc(url, params, settings) { + return jsonRpc(url, 'call', params, settings); +} + // helper function realSetTimeout (fct, millis) { var finished = new Date().getTime() + millis; @@ -363,6 +368,7 @@ var loadXML = (function () { return { jsonRpc: jsonRpc, jsonpRpc: jsonpRpc, + rpc: rpc, loadCSS: loadCSS, loadJS: loadJS, loadXML: loadXML, |
