mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-12-24 09:58:51 +00:00
Can like comments
This commit is contained in:
parent
5a62f6206f
commit
a3634a2542
@ -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
|
||||||
|
);
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user