diff options
author | Max Kostikov <max@kostikov.co> | 2019-05-13 23:16:36 +0200 |
---|---|---|
committer | Max Kostikov <max@kostikov.co> | 2019-05-13 23:16:36 +0200 |
commit | d0322f5fbdf7a1ec3ac3ee894a8eabc4b252cf57 (patch) | |
tree | d0188da4a26647919ad96f9e6c4ed0cbae958406 /view/js/main.js | |
parent | c1f01b7e3515ed823019f133cd73c1752b372f4c (diff) | |
download | volse-hubzilla-d0322f5fbdf7a1ec3ac3ee894a8eabc4b252cf57.tar.gz volse-hubzilla-d0322f5fbdf7a1ec3ac3ee894a8eabc4b252cf57.tar.bz2 volse-hubzilla-d0322f5fbdf7a1ec3ac3ee894a8eabc4b252cf57.zip |
Fix comments scroll button CSS
Diffstat (limited to 'view/js/main.js')
-rw-r--r-- | view/js/main.js | 6 |
1 files changed, 3 insertions, 3 deletions
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'); - $('<a href="javascript:doscrollback(' + pos + ');" class="back-to-reply" title="' + aStr['to_reply'] + '"><i class="fa fa-angle-double-down float-right"> </i></a>').insertBefore('#wall-item-info-' + id.attr('id').replace(/\D/g,'')); + $('<a href="javascript:doscrollback(' + pos + ');" id="back-to-reply" class="float-right" title="' + aStr['to_reply'] + '"><i class="fa fa-angle-double-down"> </i></a>').insertBefore('#wall-item-info-' + id.attr('id').replace(/\D/g,'')); } function doscrollback(pos) { - $('.back-to-reply').remove(); + $('#back-to-reply').remove(); $(window).scrollTop(pos); } |