فهرست منبع

[search] Cleaner gridlayout headers when no fields are selected

Romain Rigaux 11 سال پیش
والد
کامیت
ddddcf6
2فایلهای تغییر یافته به همراه1 افزوده شده و 3 حذف شده
  1. 1 1
      apps/search/src/search/templates/search.mako
  2. 0 2
      apps/search/static/js/search.ko.js

+ 1 - 1
apps/search/src/search/templates/search.mako

@@ -472,7 +472,7 @@ ${ commonheader(_('Search'), "search", user, "80px") | n,unicode }
       <div id="result-main" style="overflow-x: auto">
         <table id="result-container" data-bind="visible: !$root.isRetrievingResults()" style="margin-top: 0; width: 100%">
           <thead>
-            <tr data-bind="visible: $root.results().length > 0">
+            <tr data-bind="visible: $root.collection.template.fieldsSelected().length > 0">
               <th style="width: 18px">&nbsp;</th>
               <!-- ko foreach: $root.collection.template.fieldsSelected -->
               <th data-bind="with: $root.collection.getTemplateField($data), event: { mouseover: $root.enableGridlayoutResultChevron, mouseout: $root.disableGridlayoutResultChevron }" style="white-space: nowrap">

+ 0 - 2
apps/search/static/js/search.ko.js

@@ -736,8 +736,6 @@ var Collection = function (vm, collection) {
     } else {
       self.template.fieldsSelected.splice(index, 2, array[index + 1], array[index]);
     }
-  
-    vm.search();
   };
   
   self.upDownFacetLimit = function (facet_id, direction) {