FIX: render uncategorized badge in category chooser
This commit is contained in:
parent
5d4995640b
commit
0d57e4b235
|
@ -40,7 +40,7 @@ Discourse.CategoryChooserView = Discourse.ComboboxView.extend({
|
||||||
var category = Discourse.Category.findById(parseInt(templateData.id,10));
|
var category = Discourse.Category.findById(parseInt(templateData.id,10));
|
||||||
if (!category) return text;
|
if (!category) return text;
|
||||||
|
|
||||||
var result = Discourse.HTML.categoryBadge(category, {showParent: true, link: false});
|
var result = Discourse.HTML.categoryBadge(category, {showParent: true, link: false, allowUncategorized: true});
|
||||||
|
|
||||||
result += " <div class='topic-count'>× " + category.get('topic_count') + "</div>";
|
result += " <div class='topic-count'>× " + category.get('topic_count') + "</div>";
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue