summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/asdf.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/js/asdf.js b/js/asdf.js
index 53222e8..6006eea 100644
--- a/js/asdf.js
+++ b/js/asdf.js
@@ -1,7 +1,7 @@
//
// asdf .. asdf.us/im search api
-var asdf = { fetching: false }
+var asdf = { fetching: false, fetched: false }
asdf.random = function (e){
status("fetching random photoblasts")
e && e.preventDefault();
@@ -13,7 +13,7 @@ asdf.random = function (e){
asdf.fetch = function (opt){
if (asdf.fetching) return;
- asdf.fetching = true;
+ asdf.fetching = true
var params = {random:1};
$.ajax({
'url': "http://asdf.us/cgi-bin/im/list",
@@ -21,6 +21,7 @@ asdf.fetch = function (opt){
'dataType': "jsonp",
'success': function(urls){
asdf.fetching = false;
+ asdf.fetched = true
opt.success && opt.success(urls)
},
'error': opt.error || function(err){