Node.js based forum software built for the modern web
topic title
Baris Soner Usaklib912dcb2f039
diff --git a/public/src/forum/topic.js b/public/src/forum/topic.jsindex 7006763991..ac4ee4a0de 100644--- a/public/src/forum/topic.js+++ b/public/src/forum/topic.js@@ -1075,17 +1075,20 @@ define(['composer', 'forum/pagination'], function(composer, pagination) {var progressBar = $('.progress-bar');var tid = templates.get('topic_id');+ if(scrollTop > 50) {+ $('#header-topic-title').html(templates.get('topic_name')).show();+ } else {+ $('#header-topic-title').html('').hide();+ }+if (scrollTop < jQuery('.posts > .post-row:first-child').height() && Topic.postCount > 1) {localStorage.removeItem("topic:" + tid + ":bookmark");paginationEl.html('1 out of ' + Topic.postCount);progressBar.width(0);- $('#header-topic-title').html('').hide();+return;}- $('#header-topic-title').html(templates.get('topic_name')).show();--var count = 0, smallestNonNegative = 0;jQuery('.posts > .post-row:not(".deleted")').each(function() {diff --git a/public/templates/header.tpl b/public/templates/header.tplindex e248b8384d..dc3eee001b 100644--- a/public/templates/header.tpl+++ b/public/templates/header.tpl@@ -199,9 +199,9 @@</li></ul>- <ul class="nav navbar-nav navbar-right hidden-md-inline header-topic-title">+ <div class="header-topic-title pull-right hidden-md-inline"><h4 id="header-topic-title"></h4>- </ul>+ </div></div></div></div>