1
0
Fork 0

Update timeline.js

This commit is contained in:
Daniel Supernault 2018-11-13 12:45:50 -07:00
parent a78beb2c16
commit 5da0ac3f4f
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7
1 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@ $(document).ready(function() {
let elem = document.querySelector('.timeline-feed');
let type = elem.getAttribute('data-timeline');
$('.timeline-sidenav .nav-link[data-type="'+type+'"]').addClass('active');
pixelfed.readmore();
pixelfed.fetchLikes();
$('video').on('play', function() {
activated = this;
@ -40,8 +41,8 @@ $(document).ready(function() {
$(document).on("DOMContentLoaded", function() {
var active = false;
var lazyLoad = function() {
pixelfed.readmore();
if (active === false) {
active = true;