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:
Jon Atkins 2013-11-24 01:48:00 +00:00
parent 1bfe89c041
commit 47d453793c

View File

@ -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({