Update actionbar share and comment

This commit is contained in:
cuom1999 2022-11-19 17:30:07 -06:00
parent a5c045986b
commit b6a09c9ebb
10 changed files with 35 additions and 27 deletions

View file

@ -212,25 +212,12 @@
$comment.find('.bad-comment-body').hide();
};
$("#share-button").click( function() {
navigator.clipboard
.writeText(window.location.href)
.then( () => {
alert("Copied link to this post");
});
});
$("#write-comments").click( function(event) {
$("#write-comment").click( function(event) {
event.preventDefault();
$("#new-comment").show("slow");
$("#write-comments").hide();
$("#write-comment").hide();
});
$('#comment-button').click( function() {
$('#comment-section').show();
$('#comment-announcement').hide();
})
});
</script>
{% endcompress %}