From b21db670b411544f33dab51520aeb55f3dcd14ea Mon Sep 17 00:00:00 2001 From: Max Kostikov Date: Mon, 13 May 2019 21:16:36 +0000 Subject: Fix comments scroll button CSS (cherry picked from commit d0322f5fbdf7a1ec3ac3ee894a8eabc4b252cf57) --- view/js/main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'view') diff --git a/view/js/main.js b/view/js/main.js index 48159e6e8..e91bd914d 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -1161,7 +1161,7 @@ function doreply(parent, ident, owner, hint) { function doscroll(parent, hidden) { var x = '#hide-comments-outer-' + hidden.toString(); - var back = $('.back-to-reply'); + var back = $('#back-to-reply'); if(back.length == 0) var pos = $(window).scrollTop(); else @@ -1177,11 +1177,11 @@ function doscroll(parent, hidden) { back.remove(); var id = $('[data-mid="' + parent + '"]'); $('html, body').animate({scrollTop:(id.offset().top) - 50}, 'slow'); - $('   ').insertBefore('#wall-item-info-' + id.attr('id').replace(/\D/g,'')); + $('   ').insertBefore('#wall-item-info-' + id.attr('id').replace(/\D/g,'')); } function doscrollback(pos) { - $('.back-to-reply').remove(); + $('#back-to-reply').remove(); $(window).scrollTop(pos); } -- cgit v1.2.3