mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-25 09:17:03 +00:00
Update timeline.js
This commit is contained in:
parent
a78beb2c16
commit
5da0ac3f4f
1 changed files with 2 additions and 1 deletions
3
resources/assets/js/timeline.js
vendored
3
resources/assets/js/timeline.js
vendored
|
@ -4,6 +4,7 @@ $(document).ready(function() {
|
||||||
let elem = document.querySelector('.timeline-feed');
|
let elem = document.querySelector('.timeline-feed');
|
||||||
let type = elem.getAttribute('data-timeline');
|
let type = elem.getAttribute('data-timeline');
|
||||||
$('.timeline-sidenav .nav-link[data-type="'+type+'"]').addClass('active');
|
$('.timeline-sidenav .nav-link[data-type="'+type+'"]').addClass('active');
|
||||||
|
pixelfed.readmore();
|
||||||
pixelfed.fetchLikes();
|
pixelfed.fetchLikes();
|
||||||
$('video').on('play', function() {
|
$('video').on('play', function() {
|
||||||
activated = this;
|
activated = this;
|
||||||
|
@ -40,8 +41,8 @@ $(document).ready(function() {
|
||||||
$(document).on("DOMContentLoaded", function() {
|
$(document).on("DOMContentLoaded", function() {
|
||||||
|
|
||||||
var active = false;
|
var active = false;
|
||||||
|
|
||||||
var lazyLoad = function() {
|
var lazyLoad = function() {
|
||||||
|
pixelfed.readmore();
|
||||||
if (active === false) {
|
if (active === false) {
|
||||||
active = true;
|
active = true;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue