Skip to content

Node.js based forum software built for the modern web

Allow for a little scrolling before dismissing bookmark alert

RaceProUKfd854b134deb
diff --git a/public/src/client/topic.js b/public/src/client/topic.js
index c3e228f9ae..7a989f96aa 100644
--- a/public/src/client/topic.js
+++ b/public/src/client/topic.js
@@ -221,7 +221,9 @@ define('forum/topic', [
} else {
span.html('').hide();
}
- app.removeAlert('bookmark');
+ if ($(window).scrollTop() > 300) {
+ app.removeAlert('bookmark');
+ }
}
Topic.calculateIndex = function(index, elementCount) {