浏览代码

HUE-7949 [dashboard] The main page droppable should accept just some specific draggables

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

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

@@ -4310,6 +4310,7 @@ $(document).ready(function () {
   });
 
   $('#searchComponents').parents('.embeddable').droppable({
+    accept: '.draggable-widget, .draggableText',
     drop: function( event, ui ) {
       if (searchViewModel.isGridster()) {
         huePubSub.publish('dashboard.drop.on.page', {event: event, ui: ui});