From ad8ed5420201e01bc4f97017314804bf5e3a131c Mon Sep 17 00:00:00 2001 From: Ricardo Quintanilha Date: Mon, 30 Oct 2017 19:14:01 -0200 Subject: [PATCH] Omit date selection field for non time based searches --- htdocs/assets/js/views/searches/search.js | 1 + htdocs/assets/templates/searches/search.html | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/htdocs/assets/js/views/searches/search.js b/htdocs/assets/js/views/searches/search.js index c10ebd4..d796d8a 100644 --- a/htdocs/assets/js/views/searches/search.js +++ b/htdocs/assets/js/views/searches/search.js @@ -529,6 +529,7 @@ define(function(require) { no_freq: this.no_freq, has_sources: _.isArray(sources), host: Data.Host, + is_time_based: Search.Data().TimeBased[this.model.get('type')] }); // Render any additional content. vars.addn_fields_a = this.addnFieldsATpl(vars); diff --git a/htdocs/assets/templates/searches/search.html b/htdocs/assets/templates/searches/search.html index c835edb..171adcc 100644 --- a/htdocs/assets/templates/searches/search.html +++ b/htdocs/assets/templates/searches/search.html @@ -237,18 +237,22 @@ + {{#if is_time_based}} + {{/if}} {{#unless new_search}}
+ {{#if is_time_based}} + {{/if}}
{{/unless}} {{#if new_search}}