diff options
Diffstat (limited to 'web/transaction.js')
-rw-r--r-- | web/transaction.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/web/transaction.js b/web/transaction.js index a850488..c843b34 100644 --- a/web/transaction.js +++ b/web/transaction.js @@ -4,7 +4,7 @@ */ define( - ["acf2/path", "acf2/type", "jquery", "underscore", "jquery-blockui"], + ["aconf/path", "aconf/type", "jquery", "underscore", "jquery-blockui"], function(pth, type, $, _) { return function(token, saveRequired) { var txnMgr = {}; @@ -22,8 +22,8 @@ define( function request(url, options) { options = options || {}; - options.headers = {"X-ACF-Auth-Token": token}; - if (txn) options.headers["X-ACF-Transaction-ID"] = txn; + options.headers = {"X-AConf-Auth-Token": token}; + if (txn) options.headers["X-AConf-Transaction-ID"] = txn; if (options.data != undefined) options.data = JSON.stringify(options.data); return $.ajax(encodeURI(url), options); @@ -384,7 +384,7 @@ define( else request("/transaction", {type: "POST"}) .done(function(data, status, xhr) { - txn = xhr.getResponseHeader("X-ACF-Transaction-ID"); + txn = xhr.getResponseHeader("X-AConf-Transaction-ID"); def.resolve(); }) .fail(function() { def.reject(); }); |