瀏覽代碼

[notebook] Don't automatically add a new snippet after execution of SQL type snippets

While testing the Hive and Impala editors I found it annoying that focus was moved to a new snippet after execute, especially as the snippet is added after the result table/graph.
Johan Ahlen 10 年之前
父節點
當前提交
c6bda77
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      desktop/libs/notebook/src/notebook/static/notebook/js/notebook.ko.js

+ 1 - 1
desktop/libs/notebook/src/notebook/static/notebook/js/notebook.ko.js

@@ -501,7 +501,7 @@
         setTimeout(function () {
           self.fetchResultData(rows, false);
         }, 500);
-      } else if (notebook.snippets()[notebook.snippets().length - 1] == self) {
+      } else if (! self.isSqlDialect() && notebook.snippets()[notebook.snippets().length - 1] == self) {
         notebook.newSnippet();
       }
     };