mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-10 07:55:46 +01:00
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:
@@ -221,7 +221,9 @@ define('forum/topic', [
|
|||||||
} else {
|
} else {
|
||||||
span.html('').hide();
|
span.html('').hide();
|
||||||
}
|
}
|
||||||
app.removeAlert('bookmark');
|
if ($(window).scrollTop() > 300) {
|
||||||
|
app.removeAlert('bookmark');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Topic.calculateIndex = function(index, elementCount) {
|
Topic.calculateIndex = function(index, elementCount) {
|
||||||
|
|||||||
Reference in New Issue
Block a user