瀏覽代碼

HUE-4747 [editor] Download form should be submitted to a new tab otherwise the snippet gets closed

Enrico Berti 9 年之前
父節點
當前提交
b44a671
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      desktop/libs/notebook/src/notebook/templates/notebook_ko_components.mako

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

@@ -318,7 +318,7 @@ except ImportError, e:
 
 <%def name="downloadSnippetResults()">
   <script type="text/html" id="download-results-template">
-    <form method="POST" action="${ url('notebook:download') }" class="download-form" style="display: inline">
+    <form method="POST" action="${ url('notebook:download') }" class="download-form" style="display: inline" target="_blank">
       ${ csrf_token(request) | n,unicode }
       <input type="hidden" name="notebook"/>
       <input type="hidden" name="snippet"/>