re-order the common method name & version parameters in the JSON requests to match the stock intel site
for #656
This commit is contained in:
parent
1bfe89c041
commit
47d453793c
@ -146,7 +146,7 @@ window.postAjax = function(action, data, success, error) {
|
|||||||
// and of the 'version' parameter (we assume it's a version - if missing/wrong that's what the error refers to)
|
// and of the 'version' parameter (we assume it's a version - if missing/wrong that's what the error refers to)
|
||||||
versionStr = mungeOneString(versionStr);
|
versionStr = mungeOneString(versionStr);
|
||||||
|
|
||||||
var post_data = JSON.stringify(window.requestDataMunge($.extend({method: methodName, version: versionStr}, data)));
|
var post_data = JSON.stringify(window.requestDataMunge($.extend({}, data, {method: methodName, version: versionStr})));
|
||||||
var remove = function(data, textStatus, jqXHR) { window.requests.remove(jqXHR); };
|
var remove = function(data, textStatus, jqXHR) { window.requests.remove(jqXHR); };
|
||||||
var errCnt = function(jqXHR) { window.failedRequestCount++; window.requests.remove(jqXHR); };
|
var errCnt = function(jqXHR) { window.failedRequestCount++; window.requests.remove(jqXHR); };
|
||||||
var result = $.ajax({
|
var result = $.ajax({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user