diff options
author | Aaron LI <aaronly.me@outlook.com> | 2016-11-18 14:38:12 +0800 |
---|---|---|
committer | Aaron LI <aaronly.me@outlook.com> | 2016-11-18 14:38:12 +0800 |
commit | 381550871001f9fa037014efe1b361d072983bcd (patch) | |
tree | f377795b25164b493d791f13495928d018c7a888 /fg21sim/webui/static/js/console.js | |
parent | dc59c7d18975a744ceac484eccf25225ef4ab583 (diff) | |
download | fg21sim-381550871001f9fa037014efe1b361d072983bcd.tar.bz2 |
webui: Rename jQuery ".fail()" callback argument "error" to "jqxhr"
Diffstat (limited to 'fg21sim/webui/static/js/console.js')
-rw-r--r-- | fg21sim/webui/static/js/console.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/fg21sim/webui/static/js/console.js b/fg21sim/webui/static/js/console.js index 86062a7..4417b6f 100644 --- a/fg21sim/webui/static/js/console.js +++ b/fg21sim/webui/static/js/console.js @@ -146,12 +146,12 @@ var deleteLogMessages = function () { */ var getServerTaskStatus = function (url) { return $.getJSON(url) - .fail(function (error) { + .fail(function (jqxhr) { var modalData = {}; modalData.icon = "times-circle"; modalData.message = "Failed to get the task status!"; - modalData.code = error.status; - modalData.reason = error.statusText; + modalData.code = jqxhr.status; + modalData.reason = jqxhr.statusText; showModalConsole(modalData); }); }; @@ -169,12 +169,12 @@ var startServerTask = function (url, task, kwargs) { kwargs = typeof kwargs !== "undefined" ? kwargs : {}; var data = {action: "start", task: task, kwargs: kwargs}; return $.postJSON(url, data) - .fail(function (error) { + .fail(function (jqxhr) { var modalData = {}; modalData.icon = "times-circle"; modalData.message = "Failed to start the task!"; - modalData.code = error.status; - modalData.reason = error.statusText; + modalData.code = jqxhr.status; + modalData.reason = jqxhr.statusText; showModalConsole(modalData); }); }; |