From 30df61e7a5ddd30b6967516789440d910904a02e Mon Sep 17 00:00:00 2001 From: psychobunny Date: Thu, 2 Apr 2015 15:56:32 -0400 Subject: [PATCH] infinite scrolling on category view, checkboxes weren't showing up --- public/src/client/category.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/public/src/client/category.js b/public/src/client/category.js index ec667a652f..e49e193c68 100644 --- a/public/src/client/category.js +++ b/public/src/client/category.js @@ -184,8 +184,11 @@ define('forum/category', [ $(window).trigger('filter:categories.new_topic', topic); + var editable = !!$('.thread-tools').length; + templates.parse('category', 'topics', { - privileges: {editable: !!$('.thread-tools').length}, + privileges: {editable: editable}, + showSelect: editable, topics: [topic] }, function(html) { translator.translate(html, function(translatedHTML) { @@ -276,6 +279,8 @@ define('forum/category', [ return; } + data.showSelect = data.privileges.editable; + findInsertionPoint(); templates.parse('category', 'topics', data, function(html) {