Commit c3272326 authored by Gradl, Tobias's avatar Gradl, Tobias
Browse files

425: Fix minor search handling issues (OPENED)

Task-Url: search#425
parent 8a7305ed
......@@ -29,9 +29,9 @@ Search.prototype.init = function() {
Search.prototype.bindEvents = function() {
$("#btn-exec-search").click(function() { search.queryHandler.doSearch(); });
$("#explain").change(function() { search.queryHandler.doSearch(); });
$('#expression').keyup(function (e) { if (e.which==13) { search.queryHandler.doSearch(); }});
$("#btn-exec-search").click(function() { search.search(true); });
$("#explain").change(function() { search.search(); });
$('#expression').keyup(function (e) { if (e.which==13) { search.search(true); }});
$("#size").bind("slider:changed", function (event, data) {
$("#size_shown").text(data.value);
......@@ -76,8 +76,12 @@ Search.prototype.getSelectedSourceIds = function() {
return this.sourceSelection.getSelectedSourceIds();
};
Search.prototype.search = function() {
//this.queryHandler.doSearch();
Search.prototype.search = function(immediately) {
if (immediately===true) {
this.queryHandler.doSearch();
} else {
this.queryHandler.doSearchDelayed();
}
};
Search.prototype.metasearch = function(sourceIds, isShowMore) {
......
......@@ -42,6 +42,7 @@ SourceSelection.prototype.handleSelection = function() {
});
}
this.renderDatasourceList();
console.log(search);
if (search!==undefined && search.search!==undefined) {
search.search();
}
......
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