//Code for sizing and Bar jQuery(document).on("afterrender", function(e, eventInfo) { //$("#multicalendar").css("min-width","1200px"); if ($(".chip.drag.chip1").length > 0) { function mvrepaint(p,a) { var c = a.length; for (var i = 0; i < c; i++) p.find(a[i]).css("width",100/c+"%").css("left",(i*100/c)+"%").css("opacity",(i%2)?"70%":"100%"); } $(".chip.drag.chip1").each(function(){ var p = $(this).parent(), t = "", a = [],d = []; p.children().each(function(){ d[d.length]=$(this); }) try {d.sort(function(a,b){return a.css("top").replace("px","")*1 - b.css("top").replace("px","")*1})}catch (e) {} for (var i = 0; i < d.length; i++) { if (t=="") t = d[i].css("top"); if (t!=d[i].css("top")) { mvrepaint(p,a) t = d[i].css("top"); a = []; } a[a.length] = "."+d[i].attr("class").replace("chip ","").replace(" drag",""); } mvrepaint(p,a); }) } }); //Custom code Attend; jQuery(document).on("afterrender", function(e, eventInfo) { if ($(".chip.chip1").length > 0) { function mvrepaint(p,a) { var c = a.length; for (var i = 0; i < c; i++) p.find(a[i]).css("width",100/c+"%").css("left",(i*100/c)+"%").css("opacity",(i%2)?"70%":"100%"); } $(".chip.chip1").each(function(){ var p = $(this).parent(), t = "",h = "", a = [],d = []; p.children().each(function(){ d[d.length]=$(this); }) try {d.sort(function(a,b){return a.css("top").replace("px","")*1 - b.css("top").replace("px","")*1})}catch (e) {} for (var i = 0; i < d.length; i++) { if (t=="") t = parseInt(d[i].css("top")); if (h=="") h = parseInt(d[i].find("dl").css("height")); if (t+h
'); $(this).find(".mvjoin").unbind('click').bind('click',function(){ mvSetActive($(this),$(this).hasClass("mvjoin-desactive"),true,idevent); }); }); if (typeof mvcconfig.params.ev === 'undefined') mvGetListByUser(false); else mvSetListByUser(); function mvShowList(listEvents) { var str = ""; var l = mvcconfig.params.allJoin[listEvents]; $(".chip").each(function(){ if (typeof l["e_"+$(this).attr("ide")] !== 'undefined') { if (!Array.isArray(l["e_"+$(this).attr("ide")])) { str = l["e_"+$(this).attr("ide")]; l["e_"+$(this).attr("ide")] = []; l["e_"+$(this).attr("ide")][0] = str; } str = l["e_"+$(this).attr("ide")].join("
"); } $(this).find(".tt").html(str); }) } mvcconfig.params.allJoin = mvcconfig.params.allJoin || []; $(".chip").each(function(){ listEvents += ","+$(this).attr("ide"); }) if (typeof mvcconfig.params.allJoin[listEvents] === 'undefined') mvGetListByEvents(listEvents) else mvShowList(listEvents); } });