Update actionbar share and comment
This commit is contained in:
parent
a5c045986b
commit
b6a09c9ebb
10 changed files with 35 additions and 27 deletions
|
@ -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 %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue