Commit 649f5a74 authored by Clément Damiens's avatar Clément Damiens

hotfix bread event 
parent 36560ab2
......@@ -135,7 +135,7 @@ function bindSearchCity(){
$("#searchOnCity").off().on("keyup", function(e){
if(e.keyCode == 13){
//initTypeSearch("cities");
searchTypeGS = ["cities"]
searchTypeGS = ["cities"];
startGlobalSearch(0, 30, "#searchOnCity");
//startSearch($(this).val(), null, null);
//$(".btn-directory-type").removeClass("active");
......
......@@ -16,7 +16,7 @@ function bindCommunexionScopeEvents(){
activateGlobalCommunexion(false);
});
$(".item-globalscope-checker").click(function(){
$(".item-globalscope-checker").off().on('click', function(){
$(".item-globalscope-checker").addClass("inactive");
$(this).removeClass("inactive");
var notSearch = $(this).data("scope-notsearch");
......@@ -26,9 +26,9 @@ function bindCommunexionScopeEvents(){
//communexion.cities = trad.allcitieswiththispostalcode
$("#searchOnCity").val("");
$(".dropdown-result-global-search").hide(700).html("");
if(location.hash.indexOf("#search")){
notSearch = false;
}
//if(location.hash.indexOf("#search")){
// notSearch = false;
//}
}
mylog.log("globalscope-checker", $(this).data("scope-name"), $(this).data("scope-type"));
setGlobalScope( $(this).data("scope-value"), $(this).data("scope-name"), $(this).data("scope-type"), $(this).data("scope-level"),
......
......@@ -494,9 +494,9 @@ function setGlobalScope(scopeValue, scopeName, scopeType, scopeLevel, values, no
} , "html" );
}
if(!notNull(notSearch) || notSearch == true)
if(!notNull(notSearch) || notSearch == true){
activateGlobalCommunexion(true,null, testCo);
}
//rebuildSearchScopeInput();
......
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