Infinite scrolling and comment migration

This commit is contained in:
cuom1999 2023-02-20 17:15:13 -06:00
parent 4b558bd656
commit 799ff5f8f8
33 changed files with 639 additions and 556 deletions

View file

@ -45,7 +45,7 @@
</span>
<span class="actionbar-block" style="justify-content: flex-end;">
<span class="actionbar-button actionbar-share" style="position: relative"
{{"share-url=" + share_url if share_url else ""}}>
{{"share-url=" + share_url if share_url else ""}} onclick="javascript:actionbar_share(this, event)">
<i class=" fa fa-share" style="font-size: large;"></i>
<span class="actionbar-text">{{_("Share")}}</span>
</span>

View file

@ -107,15 +107,15 @@
}
}
};
$(".actionbar-share").click(function(e) {
window.actionbar_share = function(element, e) {
e.stopPropagation();
link = $(this).attr("share-url") || window.location.href;
link = $(element).attr("share-url") || window.location.href;
navigator.clipboard
.writeText(link)
.then(() => {
showTooltip(this, "Copied link", 'n');
showTooltip(element, "Copied link", 'n');
});
});
};
$('.actionbar-comment').on('click', function() {
$('#comment-section').show();