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

fix scrol on event preview & url history & costum preview

parent 767a23c4
......@@ -47,9 +47,9 @@ var calendar = {
onchangeClick=false;
link = "#page.type.events.id."+calEvent.id;
// previewHash=link.split(".");
// hashT=location.hash.split("?");
hashT=location.hash.split("?");
getStatus=searchInterface.getUrlSearchParams();
urlHistoric="?preview=events."+calEvent.id;
urlHistoric=hashT[0]+"?preview=events."+calEvent.id;
// if($("#entity"+previewHash[4]).length > 0) setTimeout(function(){$("#entity"+previewHash[4]).addClass("active");},200);
if(getStatus != "") urlHistoric+="&"+getStatus;
history.replaceState({}, null, urlHistoric);
......
function eltImgPreview($this){
hImg=$($this).outerHeight();
$(".content-img-profil-preview").css({"margin-top": -(hImg/2)+"px"});
}
function resizeContainer(){
heightModal=$("#modal-preview-coop").outerHeight();
heightToolsMenu=$("#modal-preview-coop .toolsMenu").outerHeight();
if(heightModal != 0)
$("#modal-preview-coop .container-preview").css({"height": (heightModal-heightToolsMenu)+"px"});
else
setTimeout(function(){ resizeContainer(); }, 200);
}
\ No newline at end of file
This diff is collapsed.
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