diff options
Diffstat (limited to 'Cydia.app/menes/menes.js')
-rw-r--r-- | Cydia.app/menes/menes.js | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/Cydia.app/menes/menes.js b/Cydia.app/menes/menes.js index 8148d8d..70c5c47 100644 --- a/Cydia.app/menes/menes.js +++ b/Cydia.app/menes/menes.js @@ -439,9 +439,15 @@ $.xhr = function (url, method, headers, data, events) { events = {}; xhr.onreadystatechange = function () { - if (xhr.readyState == 4) - if (events.complete != null) - events.complete(xhr.responseText); + if (xhr.readyState == 4) { + var status = xhr.status; + var text = xhr.responseText; + if (events.response != null) + events.response(status, text); + if (events.success != null) + if (status == 200) + events.success(text); + } }; xhr.send(data); |