Browse Source

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

Enrico Berti 7 năm trước cách đây
mục cha
commit
119d9db

+ 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});