Commit d55f68ef authored by Clément Damiens's avatar Clément Damiens

fix text search bar focus end keyup
parent 5587971d
......@@ -58,10 +58,9 @@ function initSearchInterface(){
activeTagsFilter();
startSearch(0, indexStepInit, searchCallback);
});
$("#main-search-bar, #main-search-xs-bar").keyup(function(e){
$("#main-search-bar").keyup(function(e){
$("#second-search-bar").val($(this).val());
$(".main-search-bar").val($(this).val());
$("#main-search-xs-bar").val($(this).val());
$("#input-search-map").val($(this).val());
if(e.keyCode == 13 || $(this).val() == "" ){
spinSearchAddon(true);
......@@ -73,10 +72,25 @@ function initSearchInterface(){
startSearch(0, indexStepInit, searchCallback);
}
});
$("#main-search-bar, #main-search-xs-bar").change(function(){
$("#main-search-xs-bar").keyup(function(e){
$("#second-search-bar").val($(this).val());
$(".main-search-bar").val($(this).val());
$("#main-search-bar").val($(this).val());
$("#input-search-map").val($(this).val());
if(e.keyCode == 13 || $(this).val() == "" ){
spinSearchAddon(true);
searchObject.page=0;
searchObject.text = $(this).val();
pageCount=true;
searchObject.count=true;
if(typeof searchObject.ranges != "undefined") searchAllEngine.initSearch();
startSearch(0, indexStepInit, searchCallback);
}
});
/*$("#main-search-bar, #main-search-xs-bar").change(function(){
$("#second-search-bar").val($(this).val());
$(".main-search-bar").val($(this).val());
});*/
$("#second-search-bar").keyup(function(e){
$(".main-search-bar").val($(this).val());
......
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