From 2a46ead29fc9fe03b78f26231d1384f4dbaed871 Mon Sep 17 00:00:00 2001 From: Baris Soner Usakli Date: Thu, 28 Nov 2013 18:44:02 -0500 Subject: [PATCH] removed container div, removed second if first, it breaks templates --- public/src/forum/topic.js | 7 +++---- public/templates/topic.tpl | 8 +++----- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/public/src/forum/topic.js b/public/src/forum/topic.js index de6765dfc9..214f4dc33e 100644 --- a/public/src/forum/topic.js +++ b/public/src/forum/topic.js @@ -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'); } diff --git a/public/templates/topic.tpl b/public/templates/topic.tpl index edad05eaef..297dd3667f 100644 --- a/public/templates/topic.tpl +++ b/public/templates/topic.tpl @@ -24,8 +24,7 @@ -