Commit 948d422d authored by Tibor Katelbach's avatar Tibor Katelbach
Browse files

repaired searchTags

parent 5dcf62b5
......@@ -210,8 +210,8 @@ function autoCompleteSearch(name, locality, indexMin, indexMax, callBack){
//var city, postalCode = "";
//Prepare footer and header of directory
$(".headerSearchContainer").html(directory.headerHtml(indexMin));
$(".footerSearchContainer").html(directory.footerHtml());
$(".headerSearchContainer").html( directory.headerHtml(indexMin) );
$(".footerSearchContainer").html( directory.footerHtml() );
str = "";
// Algorithm when searching in multi collections (scroll algo by updated)
if(search.app=="territorial")
......@@ -1107,7 +1107,7 @@ var directory = {
var classType=params.type;
if(params.type=="events") classType="";
//str += "<div class='col-lg-3 col-md-4 col-sm-6 col-xs-12 searchEntityContainer "+grayscale+" "+classType+" "+params.elTagsList+" "+params.elRolesList+" contain_"+params.type+"_"+params.id+"'>";
str += "<div class='col-lg-4 col-md-6 col-sm-6 col-xs-12 searchEntityContainer "+grayscale+" "+classType+" "+params.elTagsList+" "+params.elRolesList+" contain_"+params.type+"_"+params.id+"'>";
str += "<div class='col-lg-3 col-md-6 col-sm-6 col-xs-12 searchEntityContainer "+grayscale+" "+classType+" "+params.elTagsList+" "+params.elRolesList+" contain_"+params.type+"_"+params.id+"'>";
str += '<div class="searchEntity" id="entity'+params.id+'">';
......@@ -1615,7 +1615,7 @@ var directory = {
if(directory.dirLog) mylog.log("----------- classifiedPanelHtml",params,params.name);
str = "";
str += "<div class='col-lg-4 col-md-4 col-sm-6 col-xs-12 searchEntityContainer "+params.type+params.id+" "+params.type+" "+params.elTagsList+" '>";
str += "<div class='col-lg-3 col-md-3 col-sm-6 col-xs-12 searchEntityContainer "+params.type+params.id+" "+params.type+" "+params.elTagsList+" '>";
str += "<div class='searchEntity' id='entity"+params.id+"'>";
// directory.colPos = directory.colPos == "left" ? "right" : "left";
......
......@@ -189,7 +189,6 @@ function bindLeftMenuFilters () {
}
else
{
section = $(this).data("type-anc");
sectionKey = $(this).data("key");
//alert("section : " + section);
......@@ -215,7 +214,6 @@ function bindLeftMenuFilters () {
icon : classified.sections[sectionKey].icon }
directory.sectionFilter( filters, ".classifiedFilters",what);
bindLeftMenuFilters ();
}
else if(classified.currentLeftFilters != null) {
//alert('rebuild original');
......@@ -225,7 +223,9 @@ function bindLeftMenuFilters () {
bindLeftMenuFilters ();
classified.currentLeftFilters = null;
}
$('#searchTags').val(sectionKey);
if( $(this).data("key") == "all" ) sectionKey = "";
$('#searchTags').val( sectionKey );
//alert("section : " + $('#searchTags').val());
}
$(".btn-select-type-anc, .btn-select-category-1, .keycat").removeClass("active");
......@@ -247,7 +247,8 @@ function bindLeftMenuFilters () {
}
});
$(".btn-select-category-1").off().on("click", function(){ //alert("onclick");
$(".btn-select-category-1").off().on("click", function(){
//alert(".btn-select-category-1");
searchType = [ typeInit ];
var searchTxt = "";
var section = $('#searchTags').val();
......@@ -271,6 +272,7 @@ function bindLeftMenuFilters () {
searchTxt += classType;
}
$('#searchTags').val(searchTxt);
alert("section : " + $('#searchTags').val());
startSearch(0, indexStepInit, searchCallback);
});
......@@ -314,6 +316,7 @@ function bindLeftMenuFilters () {
}
$('#searchTags').val( searchTxt );
alert("section : " + $('#searchTags').val());
KScrollTo("#container-scope-filter");
startSearch(0, indexStepInit, searchCallback);
});
......
......@@ -416,7 +416,7 @@
<?php } else if ($typeSelected == "classified" || $typeSelected == "ressources" ){
if(Yii::app()->params["CO2DomainName"] != "terla"){
$dmod = ($typeSelected == "classified") ? $typeSelected."s" : $typeSelected;
$categories = CO2::getModuleContextList($dmod,"categories");
$this->renderPartial($dmod.".views.co.directoryjs", array( "typeSelected" => $typeSelected,"categories" => $categories ));
......@@ -501,7 +501,7 @@
}
?>
<?php $col = ( !in_array($typeSelected,
array("classified","ressources","products","services","circuits","events","vote","all","places") )) ? 9 : 8; ?>
array("classified","ressources","products","services","circuits","events","vote","all","places") )) ? 9 : 10; ?>
<?php if(Yii::app()->params["CO2DomainName"] == "terla"){ $col = 8; } ?>
......
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