Commit 3b97b8a6 authored by Raph El's avatar Raph El
Browse files

TEST lists

parent 8f1f56e6
......@@ -46,6 +46,7 @@ Yii::app()->theme->baseUrl. '/assets');
<script type="text/javascript">
var contextMapNetwork = [];
var activeMapNetwork = [];
//var contextNow = [];
var currentKFormType = "";
var indexStepInit = 100;
......@@ -579,6 +580,7 @@ function dataSuccess(data, indexMin, indexMax, locality){
// mylog.log("Tags element", o.tags);
mapElements.push(o);
contextMapNetwork.push(o);
activeMapNetwork.push(o);
}); //end each
if(str == "") {
......@@ -677,7 +679,9 @@ function dataSuccess(data, indexMin, indexMax, locality){
$.unblockUI();
if(typeof networkJson.skin.open != "undefined" ){
if(typeof networkJson.skin.open.lists != "undefined" && networkJson.skin.open.lists == true ){
$("#btn-toogle-map").trigger("click");
//$("#btn-toogle-map").trigger("click");
showMapNetwork();
calendarNetwork();
}
if(typeof networkJson.skin.open.filter != "undefined" && networkJson.skin.open.filter == true ){
......@@ -1333,22 +1337,22 @@ function updateMap(){
filteredList = contextMapNetwork;
}
}
activeMapNetwork = filteredList;
$.each(filteredList, function(e,v){
$(".contain_"+v.type+"_"+v.id).show(700);
});
//contextNow = filteredList;
if( typeof networkJson.add != "undefined" && typeof networkJson.add.event != "undefined" && networkJson.add.event == true){
$("#profil-content-calendar").fullCalendar('destroy');
calendar.showCalendar("#profil-content-calendar", filteredList, "month");
$("#profil-content-calendar").fullCalendar("gotoDate", moment(Date.now()));
$(window).on('resize', function(){
$("#profil-content-calendar").fullCalendar('destroy');
calendar.showCalendar("#profil-content-calendar", filteredList, "month");
});
}
calendarNetwork();
// if( typeof networkJson.add != "undefined" && typeof networkJson.add.event != "undefined" && networkJson.add.event == true){
// $("#profil-content-calendar").fullCalendar('destroy');
// calendar.showCalendar("#profil-content-calendar", filteredList, "month");
// $("#profil-content-calendar").fullCalendar("gotoDate", moment(Date.now()));
// $(window).on('resize', function(){
// $("#profil-content-calendar").fullCalendar('destroy');
// calendar.showCalendar("#profil-content-calendar", filteredList, "month");
// });
// }
......@@ -1366,6 +1370,18 @@ function updateMap(){
$.unblockUI();
}
function calendarNetwork(){
if( typeof networkJson.add != "undefined" && typeof networkJson.add.event != "undefined" && networkJson.add.event == true){
$("#profil-content-calendar").fullCalendar('destroy');
calendar.showCalendar("#profil-content-calendar", activeMapNetwork, "month");
$("#profil-content-calendar").fullCalendar("gotoDate", moment(Date.now()));
$(window).on('resize', function(){
$("#profil-content-calendar").fullCalendar('destroy');
calendar.showCalendar("#profil-content-calendar", activeMapNetwork, "month");
});
}
}
function addTabMap(element, tab){
if( "undefined" != typeof element.geo && element.geo != null )
tab.push(element);
......
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