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

@ -104,7 +104,21 @@
}
}
};
$(".actionbar-share").click( function() {
link = $(this).attr("share-url") || window.location.href;
navigator.clipboard
.writeText(link)
.then(() => {
showTooltip(this, "Copied link", 'n');
});
});
$('.actionbar-comment').on('click', function() {
if ($('#comment-announcement').length) {
$('#comment-announcement').click();
}
$('#write-comment').click();
})
});
</script>
{% endcompress %}