瀏覽代碼

HUE-7189 [editor] Query result modal is shown only once

jdesjean 8 年之前
父節點
當前提交
42ce4760d4
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      desktop/core/src/desktop/templates/common_notebook_ko_components.mako

+ 2 - 2
desktop/core/src/desktop/templates/common_notebook_ko_components.mako

@@ -399,11 +399,11 @@ except ImportError, e:
               if (IS_HUE_4) {
                 $(".modal-backdrop").remove();
                 if (self.saveTarget() == 'hdfs-file' || (self.saveTarget() == 'search-index' && typeof resp.rowcount !== 'undefined')) {
-                  $("#saveResultsModal").hide();
+                  $("#saveResultsModal").modal("hide");
                   huePubSub.publish('open.link', resp.watch_url);
                 } else {
                   if (resp.history_uuid) {
-                    $("#saveResultsModal").hide();
+                    $("#saveResultsModal").modal("hide");
                     huePubSub.publish('notebook.task.submitted', resp.history_uuid);
                   } else if (resp && resp.message) {
                     $(document).trigger("error", resp.message);