瀏覽代碼

HUE-1745 [beeswax] Autocomplete table name with magic from broken

Changed substring because of new font awesome names
Enrico Berti 12 年之前
父節點
當前提交
b7570f4
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      desktop/core/static/js/codemirror-hql-hint.js
  2. 1 1
      desktop/core/static/js/codemirror-isql-hint.js

+ 1 - 1
desktop/core/static/js/codemirror-hql-hint.js

@@ -97,7 +97,7 @@
     function maybeAddToExtra(str) {
       var _match = str;
       if (_match.indexOf("fa-magic") > -1) {
-        _match = _match.substring(32);
+        _match = _match.substring(_match.indexOf("FROM ") + 5);
       }
       if (_match.indexOf(start) == 0 && !arrayContains(found, str)) extraFound.push(str);
     }

+ 1 - 1
desktop/core/static/js/codemirror-isql-hint.js

@@ -97,7 +97,7 @@
     function maybeAddToExtra(str) {
       var _match = str;
       if (_match.indexOf("fa-magic") > -1) {
-        _match = _match.substring(32);
+        _match = _match.substring(_match.indexOf("FROM ") + 5);
       }
       if (_match.indexOf(start) == 0 && !arrayContains(found, str)) extraFound.push(str);
     }