Set request method to XMLRPC if called via exec_xml()

This commit is contained in:
Kijin Sung 2016-02-05 11:41:27 +09:00
parent 6eb99c8486
commit 0c2c0d2b19
3 changed files with 17 additions and 9 deletions

View file

@ -27,6 +27,7 @@
params = params ? ($.isArray(params) ? arr2obj(params) : params) : {};
params.module = module;
params.act = act;
params._rx_ajax_compat = 'XMLRPC';
// Fill in the XE vid.
if (typeof(xeVid) != "undefined") params.vid = xeVid;
@ -162,6 +163,7 @@
if (action.length != 2) return;
params.module = action[0];
params.act = action[1];
params._rx_ajax_compat = 'JSON';
// Fill in the XE vid.
if (typeof(xeVid) != "undefined") params.vid = xeVid;