forked from mirror/pixelfed
Update timeline.js
This commit is contained in:
parent
6eaafb99dc
commit
9c1dbbe9b1
|
@ -2,6 +2,8 @@ $(document).ready(function() {
|
||||||
$('.pagination').hide();
|
$('.pagination').hide();
|
||||||
$('.container.timeline-container').removeClass('d-none');
|
$('.container.timeline-container').removeClass('d-none');
|
||||||
let elem = document.querySelector('.timeline-feed');
|
let elem = document.querySelector('.timeline-feed');
|
||||||
|
let type = elem.getAttribute('data-timeline');
|
||||||
|
$('.timeline-sidenav .nav-link[data-type="'+type+'"]').addClass('active');
|
||||||
pixelfed.fetchLikes();
|
pixelfed.fetchLikes();
|
||||||
$('video').on('play', function() {
|
$('video').on('play', function() {
|
||||||
activated = this;
|
activated = this;
|
||||||
|
|
Loading…
Reference in New Issue