fixed topic posting bug, if there was only 1 topic in a category the next posted topic in that category wasnt showing up until a full page reload

This commit is contained in:
Baris Usakli
2013-11-21 15:33:41 -05:00
parent f1df8c2479
commit 866d813218
3 changed files with 10 additions and 6 deletions

View File

@@ -34,8 +34,9 @@ define(function() {
app.enter_room('topic_' + tid);
if($('#post-container .sub-posts').length)
$('.topic-main-buttons').removeClass('hide');
if($('#post-container .sub-posts').length) {
$('.topic-main-buttons').removeClass('hide').parent().removeClass('hide');
}
$('.twitter-share').on('click', function () {
window.open(twitter_url, '_blank', 'width=550,height=420,scrollbars=no,status=no');