ソースを参照

HUE-8194 [dashboard] Remove un-necessary autoheight feature

Enrico Berti 7 年 前
コミット
beed4f8fa0

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

@@ -1260,7 +1260,7 @@ ${ dashboard.layout_skeleton(suffix='search') }
         onSelectRange: function(from, to){ $root.collection.selectTimelineFacet({from: from, to: to, cat: field, widget_id: $parent.id()}) },
         onStateChange: function(state){ $root.collection.getFacetById($parent.id()).properties.stacked(state.stacked); $root.collection.getFacetById($parent.id()).properties.enableSelection(state.selectionEnabled); },
         onClick: function(d){ $root.query.selectRangeFacet({count: d.obj.value, widget_id: $parent.id(), from: d.obj.from, to: d.obj.to, cat: d.obj.field}) },
-        onComplete: function(){ $root.getWidgetById($parent.id()).isLoading(false); huePubSub.publish('gridster.autoheight'); }}" />
+        onComplete: function(){ $root.getWidgetById($parent.id()).isLoading(false); }}" />
       <div class="clearfix"></div>
     <!-- /ko -->
   </div>
@@ -1345,7 +1345,7 @@ ${ dashboard.layout_skeleton(suffix='search') }
         }
       },
       onSelectRange: function(from, to){ searchViewModel.collection.selectTimelineFacet({from: from, to: to, cat: field, widget_id: $parent.id()}) },
-      onComplete: function(){ searchViewModel.getWidgetById($parent.id()).isLoading(false); huePubSub.publish('gridster.autoheight'); },
+      onComplete: function(){ searchViewModel.getWidgetById($parent.id()).isLoading(false); },
       type: $root.collection.getFacetById($parent.id()).properties.timelineChartType }"
     />
     <div class="clearfix"></div>
@@ -1612,7 +1612,7 @@ ${ dashboard.layout_skeleton(suffix='search') }
                 }
               },
               onSelectRange: function(from, to){ searchViewModel.collection.selectTimelineFacet2({from: from, to: to, cat: field, widget_id: $parent.id()}) },
-              onComplete: function(){ searchViewModel.getWidgetById($parent.id()).isLoading(false); huePubSub.publish('gridster.autoheight'); },
+              onComplete: function(){ searchViewModel.getWidgetById($parent.id()).isLoading(false); },
               type: $root.collection.getFacetById($parent.id()).properties.timelineChartType }"
             />
             <div class="clearfix"></div>
@@ -1627,7 +1627,7 @@ ${ dashboard.layout_skeleton(suffix='search') }
               onClick: function(d) {
                 $root.query.togglePivotFacet({facet: d.obj, widget_id: id()});
               },
-              onComplete: function(){ searchViewModel.getWidgetById($parent.id()).isLoading(false); huePubSub.publish('gridster.autoheight'); },
+              onComplete: function(){ searchViewModel.getWidgetById($parent.id()).isLoading(false); },
               type: $root.collection.getFacetById($parent.id()).properties.timelineChartType }"
             />
             <div class="clearfix"></div>
@@ -1640,7 +1640,7 @@ ${ dashboard.layout_skeleton(suffix='search') }
             onSelectRange: function(from, to){ $root.collection.selectTimelineFacet2({from: from, to: to, cat: field, widget_id: $parent.id()}) },
             onStateChange: function(state){ $root.collection.getFacetById($parent.id()).properties.stacked(state.stacked); },
             onClick: function(d){ $root.query.selectRangeFacet({count: d.obj.value, widget_id: $parent.id(), from: d.obj.from, to: d.obj.to, cat: d.obj.field}) },
-            onComplete: function(){ $root.getWidgetById($parent.id()).isLoading(false); huePubSub.publish('gridster.autoheight'); }}" />
+            onComplete: function(){ $root.getWidgetById($parent.id()).isLoading(false); }}" />
             <div class="clearfix"></div>
           <!-- /ko -->
 
@@ -1656,7 +1656,7 @@ ${ dashboard.layout_skeleton(suffix='search') }
               onClick: function(d) {
                 $root.query.togglePivotFacet({facet: {'fq_fields': d.fields, 'fq_values': d.value}, widget_id: id()});
               },
-              onComplete: function(){ var widget = searchViewModel.getWidgetById($parent.id()); if (widget != null) { widget.isLoading(false)}; huePubSub.publish('gridster.autoheight'); }}" />
+              onComplete: function(){ var widget = searchViewModel.getWidgetById($parent.id()); if (widget != null) { widget.isLoading(false)}; }}" />
            <!-- /ko -->
         <!-- /ko -->
 
@@ -1668,7 +1668,7 @@ ${ dashboard.layout_skeleton(suffix='search') }
             onSelectRange: function(from, to){ $root.collection.selectTimelineFacet2({from: from, to: to, cat: field, widget_id: $parent.id()}) },
             onStateChange: function(state){ $root.collection.getFacetById($parent.id()).properties.stacked(state.stacked); },
             onClick: function(d){ $root.query.selectRangeFacet({count: d.obj.value, widget_id: $parent.id(), from: d.obj.from, to: d.obj.to, cat: d.obj.field}) },
-            onComplete: function(){ $root.getWidgetById($parent.id()).isLoading(false); huePubSub.publish('gridster.autoheight'); }}" />
+            onComplete: function(){ $root.getWidgetById($parent.id()).isLoading(false); }}" />
           <div class="clearfix"></div>
           <!-- /ko -->
         <!-- /ko -->
@@ -1679,7 +1679,7 @@ ${ dashboard.layout_skeleton(suffix='search') }
             transformer: rangePieChartDataTransformer,
             maxWidth: 250,
             onClick: function(d){ searchViewModel.query.selectRangeFacet({count: d.data.obj.value, widget_id: d.data.obj.widget_id, from: d.data.obj.from, to: d.data.obj.to, cat: d.data.obj.field}) },
-            onComplete: function(){ searchViewModel.getWidgetById($parent.id()).isLoading(false); huePubSub.publish('gridster.autoheight'); }}" />
+            onComplete: function(){ searchViewModel.getWidgetById($parent.id()).isLoading(false); }}" />
           <div class="clearfix"></div>
           <!-- /ko -->
 
@@ -1689,7 +1689,7 @@ ${ dashboard.layout_skeleton(suffix='search') }
             rangeUp: true,
             maxWidth: 250,
             onClick: function(d){ searchViewModel.query.selectRangeUpFacet({count: d.data.obj.value, widget_id: d.data.obj.widget_id, from: d.data.obj.from, to: d.data.obj.to, cat: d.data.obj.field, 'exclude': false, is_up: d.data.obj.is_up}) },
-            onComplete: function(){ searchViewModel.getWidgetById($parent.id()).isLoading(false); huePubSub.publish('gridster.autoheight'); }}" />
+            onComplete: function(){ searchViewModel.getWidgetById($parent.id()).isLoading(false); }}" />
           <div class="clearfix"></div>
           <!-- /ko -->
 
@@ -1698,7 +1698,7 @@ ${ dashboard.layout_skeleton(suffix='search') }
             transformer: pieChartDataTransformer,
             maxWidth: 250,
             onClick: function(d){ $parent.dimension() == 2 ? $root.query.togglePivotFacet({facet: d.data.obj, widget_id: id()}) : searchViewModel.query.toggleFacet({facet: d.data.obj, widget_id: d.data.obj.widget_id}) },
-            onComplete: function(){ searchViewModel.getWidgetById($parent.id()).isLoading(false); huePubSub.publish('gridster.autoheight'); }}" />
+            onComplete: function(){ searchViewModel.getWidgetById($parent.id()).isLoading(false); }}" />
           <div class="clearfix"></div>
           <!-- /ko -->
         <!-- /ko -->
@@ -1835,7 +1835,7 @@ ${ dashboard.layout_skeleton(suffix='search') }
       transformer: lineChartDataTransformer,
       onClick: function(d){ searchViewModel.query.selectRangeFacet({count: d.obj.value, widget_id: d.obj.widget_id, from: d.obj.from, to: d.obj.to, cat: d.obj.field}) },
       onSelectRange: function(from, to){ searchViewModel.collection.selectTimelineFacet({from: from, to: to, cat: field, widget_id: $parent.id()}) },
-      onComplete: function(){ searchViewModel.getWidgetById($parent.id()).isLoading(false); huePubSub.publish('gridster.autoheight'); }}"
+      onComplete: function(){ searchViewModel.getWidgetById($parent.id()).isLoading(false); }}"
     />
     <div class="clearfix"></div>
   </div>
@@ -1857,7 +1857,7 @@ ${ dashboard.layout_skeleton(suffix='search') }
         transformer: rangePieChartDataTransformer,
         maxWidth: 250,
         onClick: function(d){ searchViewModel.query.selectRangeFacet({count: d.data.obj.value, widget_id: d.data.obj.widget_id, from: d.data.obj.from, to: d.data.obj.to, cat: d.data.obj.field}) },
-        onComplete: function(){ searchViewModel.getWidgetById($parent.id()).isLoading(false); huePubSub.publish('gridster.autoheight'); }}" />
+        onComplete: function(){ searchViewModel.getWidgetById($parent.id()).isLoading(false); }}" />
       <div class="clearfix"></div>
       <!-- /ko -->
       <!-- ko if: type() == 'range-up' -->
@@ -1866,7 +1866,7 @@ ${ dashboard.layout_skeleton(suffix='search') }
         rangeUp: true,
         maxWidth: 250,
         onClick: function(d){ searchViewModel.query.selectRangeUpFacet({count: d.data.obj.value, widget_id: d.data.obj.widget_id, from: d.data.obj.from, to: d.data.obj.to, cat: d.data.obj.field, 'exclude': false, is_up: d.data.obj.is_up}) },
-        onComplete: function(){ searchViewModel.getWidgetById($parent.id()).isLoading(false); huePubSub.publish('gridster.autoheight'); }}" />
+        onComplete: function(){ searchViewModel.getWidgetById($parent.id()).isLoading(false); }}" />
       <div class="clearfix"></div>
       <!-- /ko -->
       <!-- ko if: type().indexOf('range') == -1 -->
@@ -1874,7 +1874,7 @@ ${ dashboard.layout_skeleton(suffix='search') }
         transformer: pieChartDataTransformer,
         maxWidth: 250,
         onClick: function(d){ searchViewModel.query.toggleFacet({facet: d.data.obj, widget_id: d.data.obj.widget_id}) },
-        onComplete: function(){ searchViewModel.getWidgetById($parent.id()).isLoading(false); huePubSub.publish('gridster.autoheight'); }}" />
+        onComplete: function(){ searchViewModel.getWidgetById($parent.id()).isLoading(false); }}" />
       <div class="clearfix"></div>
       <!-- /ko -->
     </div>
@@ -1962,7 +1962,7 @@ ${ dashboard.layout_skeleton(suffix='search') }
           onClick: function(d) {
             $root.query.togglePivotFacet({facet: d.obj, widget_id: id()});
           },
-          onComplete: function(){ searchViewModel.getWidgetById($parent.id()).isLoading(false); huePubSub.publish('gridster.autoheight'); }}"
+          onComplete: function(){ searchViewModel.getWidgetById($parent.id()).isLoading(false); }}"
         />
       <div class="clearfix"></div>
       <!-- /ko -->
@@ -1993,7 +1993,7 @@ ${ dashboard.layout_skeleton(suffix='search') }
           onClick: function(d) {
             $root.query.togglePivotFacet({facet: d.obj, widget_id: id()});
           },
-          onComplete: function(){ searchViewModel.getWidgetById($parent.id()).isLoading(false); huePubSub.publish('gridster.autoheight'); }}"
+          onComplete: function(){ searchViewModel.getWidgetById($parent.id()).isLoading(false); }}"
         />
       <div class="clearfix"></div>
       <!-- /ko -->
@@ -2061,7 +2061,7 @@ ${ dashboard.layout_skeleton(suffix='search') }
           onClick: function(d) {
             $root.query.togglePivotFacet({facet: d.obj, widget_id: id()});
           },
-          onComplete: function(){ searchViewModel.getWidgetById($parent.id()).isLoading(false); huePubSub.publish('gridster.autoheight'); }}"
+          onComplete: function(){ searchViewModel.getWidgetById($parent.id()).isLoading(false); }}"
         />
       <div class="clearfix"></div>
       <!-- /ko -->
@@ -2455,7 +2455,7 @@ ${ dashboard.layout_skeleton(suffix='search') }
         onClick: function(d) {
           $root.query.togglePivotFacet({facet: {'fq_fields': d.fields, 'fq_values': d.value}, widget_id: id()});
         },
-        onComplete: function(){ var widget = searchViewModel.getWidgetById($parent.id()); if (widget != null) { widget.isLoading(false)}; huePubSub.publish('gridster.autoheight'); } }" />
+        onComplete: function(){ var widget = searchViewModel.getWidgetById($parent.id()); if (widget != null) { widget.isLoading(false)}; } }" />
       <div class="clearfix"></div>
     </div>
   </div>
@@ -2534,7 +2534,7 @@ ${ dashboard.layout_skeleton(suffix='search') }
     <div data-bind="leafletMapChart: {showMoveCheckbox: true, moveCheckboxLabel: '${ _ko('Search as I move the map') }', visible: $root.hasRetrievedResults() && $root.collection.template.leafletmapOn(), isLoading: isLoading(), datum: {counts: $root.response()},
       transformer: leafletMapChartDataTransformer,
       onRegionChange: function(bounds){ $root.query.selectMapRegionFacet({widget_id: id(), 'bounds': ko.toJS(bounds, null, 2), lat: $root.collection.template.leafletmap.latitudeField(), lon: $root.collection.template.leafletmap.longitudeField()}); },
-      onComplete: function(){ var widget = searchViewModel.getWidgetById(id()); if (widget != null) { widget.isLoading(false)}; huePubSub.publish('gridster.autoheight'); } }">
+      onComplete: function(){ var widget = searchViewModel.getWidgetById(id()); if (widget != null) { widget.isLoading(false)}; } }">
     </div>
     <div class="clearfix"></div>
   </div>