Allow for a little scrolling before dismissing bookmark alert

This is just in case someone scrolls a little accidentally; the alert remains so they can still follow it if they want to
This commit is contained in:
RaceProUK
2016-03-21 19:49:35 +00:00
parent a68811cad2
commit fd854b134d

View File

@@ -221,8 +221,10 @@ define('forum/topic', [
} else {
span.html('').hide();
}
if ($(window).scrollTop() > 300) {
app.removeAlert('bookmark');
}
}
Topic.calculateIndex = function(index, elementCount) {
if (index !== 1 && config.topicPostSort !== 'oldest_to_newest') {