mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-05 17:48:50 +02:00
infinite scrolling on category view, checkboxes weren't showing up
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user