Commit f75871f4 by pratik pandey Committed by kevalbhatt

ATLAS-1905 : Search UI is confusing to user

Signed-off-by: 's avatarkevalbhatt <kbhatt@apache.org>
parent f90cca9d
......@@ -56,8 +56,8 @@
</div>
</div>
<div class="srchType">
<span class="srchTitle">Search By Query</span>
<input type="text" class="form-control" data-id="searchInput" placeholder="Search using a query string: e.g. sales_fact" style="margin: 5px 0px;">
<span class="srchTitle searchText">Search By Text</span>
<input type="text" class="form-control" data-id="searchInput" placeholder="Search by text" style="margin: 5px 0px;">
</div>
</div>
<button class="btn btn-action" data-id="clearSearch">Clear</button>
......
......@@ -541,6 +541,8 @@ define(['require',
this.$('.temFilter').removeClass('col-sm-10');
this.$('.basicSaveSearch').hide();
this.$('.advanceSaveSearch').show();
this.$('.searchText').text('Search By Query');
this.ui.searchInput.attr("placeholder", 'Search By Query eg. where name="sales_fact"');
} else {
this.$('.temFilter').addClass('col-sm-10');
this.$('.temFilter').removeClass('col-sm-12');
......@@ -550,6 +552,8 @@ define(['require',
this.$('.advanceSaveSearch').hide();
this.dsl = false;
this.type = "basic";
this.$('.searchText').text('Search By Text');
this.ui.searchInput.attr("placeholder", "Search By Text");
}
if (paramObj && this.type == "basic") {
this.query[this.type].attributes = paramObj.attributes ? paramObj.attributes : null;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment