Fix post header height

This commit is contained in:
2021-12-17 22:02:45 +01:00
parent 30615d3fae
commit 00474eb137
5 changed files with 11 additions and 10 deletions

View File

@@ -936,12 +936,13 @@ function getPost(asPost) {
.data('url', self.consts.server+sHash)
.addIcon('fa-link')
.click(function(){
copyTextToClipboard($(this).data('url'));
$(this).parent().append($('<span>', {'class':'link_copied'})
.text(oSpot.lang('link_copied'))
.delay(5000)
.fadeOut(400, function(){$(this).remove();})
);
let $Link = $(this);
copyTextToClipboard($Link.data('url'));
$Link.prop('title', oSpot.lang('link_copied')).find('i.fa').addClass('copied');
$Link.delay(5000).fadeOut(300, function(){
$Link.prop('title', oSpot.lang('copy_to_clipboard')).find('i.fa').removeClass('copied');
$Link.fadeIn(300);
});
})
);
}