Browse Source

[beeswax] Fix async problem of loading of tables/autocomplete

Enrico Berti 10 years ago
parent
commit
97fd947

+ 1 - 1
apps/beeswax/src/beeswax/static/beeswax/js/autocomplete.utils.js

@@ -28,7 +28,7 @@ function hac_jsoncalls(options) {
       type: "GET",
       type: "GET",
       url: _url + "?" + Math.random(),
       url: _url + "?" + Math.random(),
       success: options.onDataReceived,
       success: options.onDataReceived,
-      async: options.sync == "undefined"
+      async: typeof options.sync == "undefined"
     });
     });
   }
   }
 }
 }