aboutsummaryrefslogtreecommitdiffstats
path: root/view/js
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2019-05-13 23:19:19 +0200
committerMax Kostikov <max@kostikov.co>2019-05-13 23:19:19 +0200
commit18e4a7ac6edbebcab1f147b84d940bfd2392d05f (patch)
treed0188da4a26647919ad96f9e6c4ed0cbae958406 /view/js
parentc1f01b7e3515ed823019f133cd73c1752b372f4c (diff)
parentd0322f5fbdf7a1ec3ac3ee894a8eabc4b252cf57 (diff)
downloadvolse-hubzilla-18e4a7ac6edbebcab1f147b84d940bfd2392d05f.tar.gz
volse-hubzilla-18e4a7ac6edbebcab1f147b84d940bfd2392d05f.tar.bz2
volse-hubzilla-18e4a7ac6edbebcab1f147b84d940bfd2392d05f.zip
Merge branch 'dev' into 'dev'
Fix comments scroll button CSS See merge request hubzilla/core!1649
Diffstat (limited to 'view/js')
-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);
}