浏览代码

HUE-6817 [editor] Do a better column name match for the scroll to column functionality

Enrico Berti 8 年之前
父节点
当前提交
3a8dabb1dc
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      desktop/libs/notebook/src/notebook/templates/editor_components.mako

+ 1 - 1
desktop/libs/notebook/src/notebook/templates/editor_components.mako

@@ -2169,7 +2169,7 @@ from notebook.conf import ENABLE_QUERY_BUILDER, ENABLE_QUERY_SCHEDULING, ENABLE_
 
   function scrollToColumn(linkElement, index) {
     var $resultTable = $(linkElement).parents(".snippet").find("table.resultTable:eq(0)");
-    var _text = $.trim($(linkElement).text().split(" ")[0]);
+    var _text = $.trim($(linkElement).text());
     var _col = $resultTable.find("th").filter(function () {
       return $.trim($(this).text()) == _text;
     });