Fix OPs being built twice

This commit is contained in:
Zixaphir 2014-02-28 16:27:54 -07:00
parent 6ba92efcd4
commit b4d28414df
3 changed files with 3 additions and 6 deletions

View File

@ -3733,9 +3733,8 @@
className: 'thread', className: 'thread',
id: "t" + data.no id: "t" + data.no
}); });
$.add(root, Build.postFromObject(data, board.ID)); $.add(root, Build[full ? 'fullThread' : 'excerptThread'](board, data, OP));
} }
$.add(root, Build[full ? 'fullThread' : 'excerptThread'](board, data, OP));
return root; return root;
}, },
excerptThread: function(board, data, OP) { excerptThread: function(board, data, OP) {

View File

@ -3784,9 +3784,8 @@
className: 'thread', className: 'thread',
id: "t" + data.no id: "t" + data.no
}); });
$.add(root, Build.postFromObject(data, board.ID)); $.add(root, Build[full ? 'fullThread' : 'excerptThread'](board, data, OP));
} }
$.add(root, Build[full ? 'fullThread' : 'excerptThread'](board, data, OP));
return root; return root;
}, },
excerptThread: function(board, data, OP) { excerptThread: function(board, data, OP) {

View File

@ -219,9 +219,8 @@ Build =
root = $.el 'div', root = $.el 'div',
className: 'thread' className: 'thread'
id: "t#{data.no}" id: "t#{data.no}"
$.add root, Build.postFromObject data, board.ID $.add root, Build[if full then 'fullThread' else 'excerptThread'] board, data, OP
$.add root, Build[if full then 'fullThread' else 'excerptThread'] board, data, OP
root root
excerptThread: (board, data, OP) -> excerptThread: (board, data, OP) ->