mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 06:25:50 +01:00
removed container div, removed second if first, it breaks templates
This commit is contained in:
@@ -31,7 +31,7 @@ define(function() {
|
||||
|
||||
app.enterRoom('topic_' + tid);
|
||||
|
||||
if($('#post-container .posts .post-row').length > 1) {
|
||||
if($('#post-container .post-row').length > 1) {
|
||||
$('.topic-main-buttons').removeClass('hide').parent().removeClass('hide');
|
||||
}
|
||||
|
||||
@@ -331,8 +331,7 @@ define(function() {
|
||||
});
|
||||
|
||||
$('#post-container').delegate('.edit', 'click', function(e) {
|
||||
var pid = $(this).parents('li').attr('data-pid'),
|
||||
main = $(this).parents('.posts');
|
||||
var pid = $(this).parents('li').attr('data-pid');
|
||||
|
||||
require(['composer'], function(cmp) {
|
||||
cmp.push(null, null, pid);
|
||||
@@ -902,7 +901,7 @@ define(function() {
|
||||
|
||||
translator.translate(html, function(translatedHTML) {
|
||||
var translated = $(translatedHTML);
|
||||
|
||||
console.log(translated);
|
||||
if(!infiniteLoaded) {
|
||||
translated.removeClass('infiniteloaded');
|
||||
}
|
||||
|
||||
@@ -24,8 +24,7 @@
|
||||
|
||||
</ol>
|
||||
|
||||
<ul id="post-container" class="container" data-tid="{topic_id}">
|
||||
<div class="posts">
|
||||
<ul id="post-container" class="container posts" data-tid="{topic_id}">
|
||||
<!-- BEGIN posts -->
|
||||
<li class="row post-row infiniteloaded" data-pid="{posts.pid}" data-uid="{posts.uid}" data-username="{posts.username}" data-deleted="{posts.deleted}" itemscope itemtype="http://schema.org/Comment">
|
||||
<a id="post_anchor_{posts.pid}" name="{posts.pid}"></a>
|
||||
@@ -65,9 +64,9 @@
|
||||
</div>
|
||||
|
||||
<div class="btn-group">
|
||||
<!-- IF @first -->
|
||||
|
||||
<button class="btn btn-sm btn-default follow main-post" type="button" title="Be notified of new replies in this topic"><i class="fa fa-eye"></i></button>
|
||||
<!-- ENDIF @first -->
|
||||
|
||||
<button data-favourited="{posts.favourited}" class="favourite btn btn-sm btn-default <!-- IF posts.favourited --> btn-warning <!-- ENDIF posts.favourited -->" type="button">
|
||||
<span class="favourite-text">[[topic:favourite]]</span>
|
||||
<span class="post_rep_{posts.pid}">{posts.reputation} </span>
|
||||
@@ -154,7 +153,6 @@
|
||||
</li>
|
||||
<!-- ENDIF @first -->
|
||||
<!-- END posts -->
|
||||
</div>
|
||||
</ul>
|
||||
|
||||
<div class="well col-md-11 col-xs-12 pull-right hide">
|
||||
|
||||
Reference in New Issue
Block a user