aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2019-05-13 21:16:36 +0000
committerMario <mario@mariovavti.com>2019-05-14 09:13:40 +0200
commitb21db670b411544f33dab51520aeb55f3dcd14ea (patch)
tree77048824c7079883588a1a86c92c4d823eb74099
parent1f84aa980988ad762d6e71baf288791218aae6ea (diff)
downloadvolse-hubzilla-b21db670b411544f33dab51520aeb55f3dcd14ea.tar.gz
volse-hubzilla-b21db670b411544f33dab51520aeb55f3dcd14ea.tar.bz2
volse-hubzilla-b21db670b411544f33dab51520aeb55f3dcd14ea.zip
Fix comments scroll button CSS
(cherry picked from commit d0322f5fbdf7a1ec3ac3ee894a8eabc4b252cf57)
-rw-r--r--view/js/main.js6
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">&nbsp;&nbsp;&nbsp;</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">&nbsp;&nbsp;&nbsp;</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);
}