aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2011-05-13 03:53:07 -0400
committerJason A. Donenfeld <Jason@zx2c4.com>2011-05-13 03:53:07 -0400
commitb979db62d4da54671615dab475fac427c996ec14 (patch)
tree0c7c354a28f8a344a2043ea477781b66e53a1f02
parentExit immediately if its an old response. (diff)
downloadPhotoFloat-b979db62d4da54671615dab475fac427c996ec14.tar.xz
PhotoFloat-b979db62d4da54671615dab475fac427c996ec14.zip
Use ajax explicitly.
-rw-r--r--web/js/010-control.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/web/js/010-control.js b/web/js/010-control.js
index 76c7d54..e2cfe39 100644
--- a/web/js/010-control.js
+++ b/web/js/010-control.js
@@ -43,6 +43,7 @@ $(document).ready(function() {
$("#loading").show();
$.ajax({
type: "GET",
+ dataType: "json",
url: "cache/" + current_album_cache + ".json",
error: die,
success: albumLoaded
@@ -260,6 +261,7 @@ $(document).ready(function() {
}
$.ajax({
type: "GET",
+ dataType: "json",
url: "cache/" + album + ".json",
success: callback
});