浏览代码

HUE-8625 [editor] Prevent js exception when dragging from top search to the editor after visiting the importer

Johan Ahlen 7 年之前
父节点
当前提交
6e4c9cb796
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      desktop/libs/indexer/src/indexer/templates/importer.mako

+ 2 - 2
desktop/libs/indexer/src/indexer/templates/importer.mako

@@ -136,7 +136,7 @@ ${ assist.assistPanel() }
         </div>
         <div class="resizer" data-bind="visible: $root.isLeftPanelVisible() && $root.assistAvailable(), splitDraggable : { appName: 'notebook', leftPanelVisible: $root.isLeftPanelVisible }"><div class="resize-bar">&nbsp;</div></div>
         %endif
-        <div class="content-panel">
+        <div class="content-panel importer-droppable">
           <div class="content-panel-inner">
           <!-- ko template: 'create-index-wizard' --><!-- /ko -->
           </div>
@@ -2886,7 +2886,7 @@ ${ assist.assistPanel() }
 
       $(window).on('resize', resizeElements);
 
-      $('.content-panel').droppable({
+      $('.importer-droppable').droppable({
         accept: ".draggableText",
         drop: function (e, ui) {
           var text = ui.helper.text();