Revert "Change signature in $.ajax's error callback"
This reverts commit 60a77742c0
.
We don't use $.ajax...
This commit is contained in:
parent
60a77742c0
commit
69ac8e1a00
|
@ -65,7 +65,7 @@ ajax = Em.Object.create
|
||||||
success.apply(this, arguments)
|
success.apply(this, arguments)
|
||||||
|
|
||||||
error = options.error || (->)
|
error = options.error || (->)
|
||||||
options.error = (xhr, status, data) =>
|
options.error = (data, status, xhr) =>
|
||||||
Travis.lookup('controller:flash').pushObject(data.flash) if data?.flash
|
Travis.lookup('controller:flash').pushObject(data.flash) if data?.flash
|
||||||
delete data.flash if data?
|
delete data.flash if data?
|
||||||
console.log "[ERROR] API responded with an error (#{status}): #{JSON.stringify(data)}"
|
console.log "[ERROR] API responded with an error (#{status}): #{JSON.stringify(data)}"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user