소스 검색

[beeswax] Fix beeswax calls and errors for IE9

Enrico Berti 11 년 전
부모
커밋
bd86c2e
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 1
      apps/beeswax/src/beeswax/templates/execute.mako
  2. 2 2
      apps/beeswax/static/js/autocomplete.utils.js

+ 1 - 1
apps/beeswax/src/beeswax/templates/execute.mako

@@ -961,7 +961,7 @@ var HIVE_AUTOCOMPLETE_FAILS_QUIETLY_ON = [500]; // error codes from beeswax/view
 var HIVE_AUTOCOMPLETE_USER = "${ user }";
 
 var HIVE_AUTOCOMPLETE_GLOBAL_CALLBACK = function (data) {
-  if (data != null && data.error) {
+  if (data != null && data.error && typeof resetNavigator != "undefined") {
     resetNavigator();
   }
 };

+ 2 - 2
apps/beeswax/static/js/autocomplete.utils.js

@@ -23,10 +23,10 @@ function hac_jsoncalls(options) {
   if (options.table != null) {
     _url += "/" + options.table
   }
-  
+
   $.ajax({
     type: "GET",
-    url: _url,
+    url: _url + "?" + Math.random(),
     success: options.onDataReceived,
     async: options.sync == "undefined"
   });