瀏覽代碼

[pig] Skip dependency on the external autocomplete js

Enrico Berti 11 年之前
父節點
當前提交
5f5d085
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      apps/pig/src/pig/templates/app.mako

+ 6 - 0
apps/pig/src/pig/templates/app.mako

@@ -741,7 +741,13 @@ ${ commonshare() | n,unicode }
 <script src="/static/js/codemirror-pig.js"></script>
 <script src="/static/js/codemirror-show-hint.js"></script>
 <script src="/static/js/codemirror-pig-hint.js"></script>
+% if autocomplete_base_url != '':
 <script src="/beeswax/static/js/autocomplete.utils.js" type="text/javascript" charset="utf-8"></script>
+% else:
+<script type="text/javascript" charset="utf-8">
+  var hac_getTables = function() {};
+</script>
+% endif
 
 <link rel="stylesheet" href="/pig/static/css/pig.css">
 <link rel="stylesheet" href="/static/ext/css/codemirror.css">