mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-29 17:53:16 +00:00
Fix comment timeline bug
This commit is contained in:
parent
c35287f6ad
commit
aaf94d56cc
4 changed files with 3 additions and 3 deletions
BIN
public/js/app.js
vendored
BIN
public/js/app.js
vendored
Binary file not shown.
Binary file not shown.
|
@ -24,7 +24,7 @@ $(document).ready(function() {
|
||||||
if($('.status-container').length == 1) {
|
if($('.status-container').length == 1) {
|
||||||
var comments = el.parents().eq(3).find('.comments');
|
var comments = el.parents().eq(3).find('.comments');
|
||||||
} else {
|
} else {
|
||||||
var comments = el.parents().eq(2).find('.comments');
|
var comments = el.parents().eq(1).find('.comments');
|
||||||
}
|
}
|
||||||
|
|
||||||
var comment = '<p class="mb-0"><span class="font-weight-bold pr-1"><bdi><a class="text-dark" href="' + profile + '">' + username + '</a></bdi></span><span class="comment-text">'+ commenttext + '</span><span class="float-right"><a href="' + permalink + '" class="text-dark small font-weight-bold">1s</a></span></p>';
|
var comment = '<p class="mb-0"><span class="font-weight-bold pr-1"><bdi><a class="text-dark" href="' + profile + '">' + username + '</a></bdi></span><span class="comment-text">'+ commenttext + '</span><span class="float-right"><a href="' + permalink + '" class="text-dark small font-weight-bold">1s</a></span></p>';
|
||||||
|
|
4
resources/assets/js/components/likebutton.js
vendored
4
resources/assets/js/components/likebutton.js
vendored
|
@ -35,7 +35,7 @@ $(document).ready(function() {
|
||||||
.then(function (res) {
|
.then(function (res) {
|
||||||
var likes = ls.get('likes');
|
var likes = ls.get('likes');
|
||||||
var action = false;
|
var action = false;
|
||||||
var counter = el.parents().eq(2).find('.like-count');
|
var counter = el.parents().eq(1).find('.like-count');
|
||||||
var count = res.data.count;
|
var count = res.data.count;
|
||||||
var heart = el.find('.status-heart');
|
var heart = el.find('.status-heart');
|
||||||
|
|
||||||
|
@ -54,7 +54,7 @@ $(document).ready(function() {
|
||||||
}
|
}
|
||||||
|
|
||||||
ls.set('likes', likes);
|
ls.set('likes', likes);
|
||||||
console.log(action + ' - ' + $(this).data('id') + ' like event');
|
console.log(action + ' - ' + id + ' like event');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
Loading…
Reference in a new issue