Преглед изворни кода

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

Enrico Berti пре 8 година
родитељ
комит
3a8dabb
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;
     });