summaryrefslogtreecommitdiff
path: root/Cydia.app/menes
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2008-12-04 07:17:49 +0000
committerJay Freeman (saurik) <saurik@saurik.com>2010-09-30 07:09:00 +0000
commit22f8bed9669aee2b33cbc4da49eea3106e91c338 (patch)
tree6fee9ee08b04bf3d7a3f0997a97d49e8d861f4e7 /Cydia.app/menes
parent03c0f7a9657ad201acfa37b0f94bc080014a4516 (diff)
Reorganized code and mostly finished ratings indicator.
Diffstat (limited to 'Cydia.app/menes')
-rw-r--r--Cydia.app/menes/indicator-c7ced5-4d4d70.gifbin0 -> 1849 bytes
-rw-r--r--Cydia.app/menes/menes.js12
2 files changed, 9 insertions, 3 deletions
diff --git a/Cydia.app/menes/indicator-c7ced5-4d4d70.gif b/Cydia.app/menes/indicator-c7ced5-4d4d70.gif
new file mode 100644
index 0000000..e41bb96
--- /dev/null
+++ b/Cydia.app/menes/indicator-c7ced5-4d4d70.gif
Binary files differ
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);