infinite scrolling on category view, checkboxes weren't showing up

v1.18.x
psychobunny 10 years ago
parent e15f7902dd
commit 30df61e7a5

@ -184,8 +184,11 @@ define('forum/category', [
$(window).trigger('filter:categories.new_topic', topic); $(window).trigger('filter:categories.new_topic', topic);
var editable = !!$('.thread-tools').length;
templates.parse('category', 'topics', { templates.parse('category', 'topics', {
privileges: {editable: !!$('.thread-tools').length}, privileges: {editable: editable},
showSelect: editable,
topics: [topic] topics: [topic]
}, function(html) { }, function(html) {
translator.translate(html, function(translatedHTML) { translator.translate(html, function(translatedHTML) {
@ -276,6 +279,8 @@ define('forum/category', [
return; return;
} }
data.showSelect = data.privileges.editable;
findInsertionPoint(); findInsertionPoint();
templates.parse('category', 'topics', data, function(html) { templates.parse('category', 'topics', data, function(html) {

Loading…
Cancel
Save