Skip to content

Commit

Permalink
[search] Fixed hiding logic for rolling time options
Browse files Browse the repository at this point in the history
  • Loading branch information
enricoberti committed May 20, 2015
1 parent 6f1a435 commit d4b9bd6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions apps/search/src/search/templates/search.mako
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,8 @@ ${ commonheader(_('Search'), "search", user, "80px") | n,unicode }
</label>
<!-- /ko -->

<!-- ko if: columns().length > 0 -->
<select data-bind="options: $root.availableDateFields, value: collection.timeFilter.field, optionsValue: 'name', visible: $root.isEditing" class="input-medium"></select>
<span data-bind="template: {name: 'time-filter'}"></span>
<!-- /ko -->
<select data-bind="options: $root.availableDateFields, value: collection.timeFilter.field, optionsValue: 'name', visible: $root.isEditing() && $root.availableDateFields().length > 0" class="input-medium" style="margin-left: 4px"></select>
<span data-bind="template: {name: 'time-filter'}"></span>
</form>

<form class="form-search" style="margin: 0" data-bind="submit: searchBtn, visible: columns().length != 0">
Expand Down

0 comments on commit d4b9bd6

Please sign in to comment.