removed container div, removed second if first, it breaks templates

This commit is contained in:
Baris Soner Usakli
2013-11-28 18:44:02 -05:00
parent 707179edf3
commit 2a46ead29f
2 changed files with 6 additions and 9 deletions

View File

@@ -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');
}