From 47d453793c95fb1a68c45d800d0dd61ada7c6f97 Mon Sep 17 00:00:00 2001 From: Jon Atkins Date: Sun, 24 Nov 2013 01:48:00 +0000 Subject: [PATCH] re-order the common method name & version parameters in the JSON requests to match the stock intel site for #656 --- code/utils_misc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/utils_misc.js b/code/utils_misc.js index 7933f3bc..f4c0d8c7 100644 --- a/code/utils_misc.js +++ b/code/utils_misc.js @@ -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) 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 errCnt = function(jqXHR) { window.failedRequestCount++; window.requests.remove(jqXHR); }; var result = $.ajax({