diff --git a/assets/js/default/directory.js b/assets/js/default/directory.js index 4ec223e03bf47ec2a05f12b887a9186cb982770d..70c3cd11b5b8fa9f701f6d5ff9946ba252f84122 100755 --- a/assets/js/default/directory.js +++ b/assets/js/default/directory.js @@ -2697,13 +2697,17 @@ var directory = { }); $(".click-element").off().on("click", function (e) { - if (e.target.tagName === 'DIV') { + if (e.target.tagName === 'DIV' ||Â e.target.tagName === 'IMG') { var href = $(this).data("href"); var divclass = $(this).data("class"); var typeElt = $(this).data("type-elt"); - if(typeElt != "poi") - $(this).css("transform", "scale(1.2, 1.2"); - else { + $(".click-element").css("transform", "none"); + if(typeElt != "poi"){ + $(this).css("transform", "scale(1.1, 1.1)"); + setTimeout(() => { + $(this).css("transform", "none"); + }, 500) + }else { $(this).addClass("active"); setTimeout(() => { $(this).removeClass("active"); diff --git a/assets/js/default/editInPlace.js b/assets/js/default/editInPlace.js index e60a639e80a6051f59131965b3a5fd253f72b547..d14d258d2efeb2b635cac684797c646bdb15338e 100755 --- a/assets/js/default/editInPlace.js +++ b/assets/js/default/editInPlace.js @@ -587,9 +587,8 @@ function bindAboutPodElement() { if(contextData.type == typeObj.person.col ){ if(notNull(contextData.username) && contextData.username.length > 0) dataUpdate.username = contextData.username; - if(notEmpty(contextData.birthDate)){ - dataUpdate.birthDate = (new Date(contextData.birthDate.sec*1000)).toLocaleDateString(); //moment(contextData.birthDate).local().format("DD/MM/YYYY"); - } + if(notEmpty(contextData.birthDate)) + dataUpdate.birthDate = moment(contextData.birthDate).local().format("DD/MM/YYYY"); } mylog.log("ORGA ", contextData.type, typeObj.organization.col, dataUpdate.type);