浏览代码

HUE-8103 [dashboard] Dragging a top widget to the top widget bar shouldn't create a Gridster widget

Enrico Berti 7 年之前
父节点
当前提交
50519babe2
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      desktop/libs/dashboard/src/dashboard/templates/common_search.mako

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

@@ -4484,7 +4484,7 @@ $(document).ready(function () {
     })
   });
 
-  $('#searchComponents').parents('.embeddable').droppable({
+  $('#searchComponents .dashboard').droppable({
     accept: '.draggable-widget, .draggableText, .card-widget',
     drop: function( event, ui ) {
       if (searchViewModel.isGridster() && !searchViewModel.isQueryBuilder()) {