浏览代码

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

Enrico Berti 10 年之前
父节点
当前提交
97fd947
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      apps/beeswax/src/beeswax/static/beeswax/js/autocomplete.utils.js

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

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