mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-10 07:55:46 +01:00
closes #4405
This commit is contained in:
@@ -222,10 +222,10 @@ define('forum/topic', [
|
||||
|
||||
function updateTopicTitle() {
|
||||
var span = components.get('navbar/title').find('span');
|
||||
if ($(window).scrollTop() > 50) {
|
||||
span.html(ajaxify.data.title).show();
|
||||
} else {
|
||||
span.html('').hide();
|
||||
if ($(window).scrollTop() > 50 && span.hasClass('hidden')) {
|
||||
span.html(ajaxify.data.title).removeClass('hidden');
|
||||
} else if ($(window).scrollTop() <= 50 && !span.hasClass('hidden')) {
|
||||
span.html('').addClass('hidden');
|
||||
}
|
||||
if ($(window).scrollTop() > 300) {
|
||||
app.removeAlert('bookmark');
|
||||
|
||||
Reference in New Issue
Block a user