瀏覽代碼

HUE-7906 [dashboard] Fix new dashboard creation

Enrico Berti 7 年之前
父節點
當前提交
d77ed0faeb
共有 1 個文件被更改,包括 1 次插入6 次删除
  1. 1 6
      desktop/libs/dashboard/src/dashboard/templates/common_search.mako

+ 1 - 6
desktop/libs/dashboard/src/dashboard/templates/common_search.mako

@@ -3667,12 +3667,7 @@ function queryTypeahead(query, process) {
 }
 
 function newSearch() {
-  $.getJSON('/search/new_search?format=json', function(data){
-    searchViewModel.collectionJson = data.collection;
-    searchViewModel.queryJson = data.query;
-    searchViewModel.initialJson = data.initial;
-    searchViewModel.reset();
-  });
+  huePubSub.publish('open.link', '/dashboard/new_search?engine=' + searchViewModel.collection.engine());
 }
 
 function loadSearch(collection, query, initial) {