Can like comments

This commit is contained in:
Pierre 2018-01-27 18:54:12 +01:00
parent 5a62f6206f
commit a3634a2542

View File

@ -251,6 +251,27 @@ ComunicWeb.components.comments.ui = {
}
}
//Load likes
var likesTarget = createElem2({
appendTo: commentText,
type: "div",
});
var userLiking = null;
if(signed_in()){
userLiking = infos.userlike;
}
//Call component
ComunicWeb.components.like.button.display(
"comment",
infos.ID,
infos.likes,
userLiking,
likesTarget
);
},
}