mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-13 09:25:45 +01:00
topic title
This commit is contained in:
@@ -1075,17 +1075,20 @@ define(['composer', 'forum/pagination'], function(composer, pagination) {
|
|||||||
var progressBar = $('.progress-bar');
|
var progressBar = $('.progress-bar');
|
||||||
var tid = templates.get('topic_id');
|
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) {
|
if (scrollTop < jQuery('.posts > .post-row:first-child').height() && Topic.postCount > 1) {
|
||||||
localStorage.removeItem("topic:" + tid + ":bookmark");
|
localStorage.removeItem("topic:" + tid + ":bookmark");
|
||||||
paginationEl.html('1 out of ' + Topic.postCount);
|
paginationEl.html('1 out of ' + Topic.postCount);
|
||||||
progressBar.width(0);
|
progressBar.width(0);
|
||||||
$('#header-topic-title').html('').hide();
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$('#header-topic-title').html(templates.get('topic_name')).show();
|
|
||||||
|
|
||||||
|
|
||||||
var count = 0, smallestNonNegative = 0;
|
var count = 0, smallestNonNegative = 0;
|
||||||
|
|
||||||
jQuery('.posts > .post-row:not(".deleted")').each(function() {
|
jQuery('.posts > .post-row:not(".deleted")').each(function() {
|
||||||
|
|||||||
@@ -199,9 +199,9 @@
|
|||||||
</li>
|
</li>
|
||||||
</ul>
|
</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>
|
<h4 id="header-topic-title"></h4>
|
||||||
</ul>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user