From fa3927d0f628787a0a7d531dd591ba9bb2071a34 Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Mon, 3 Feb 2014 17:57:08 -0500 Subject: [PATCH] Add group icon to category badges in composer and edit topic title --- .../javascripts/discourse/views/category_chooser_view.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/discourse/views/category_chooser_view.js b/app/assets/javascripts/discourse/views/category_chooser_view.js index 1ef513876ea..9615f85f150 100644 --- a/app/assets/javascripts/discourse/views/category_chooser_view.js +++ b/app/assets/javascripts/discourse/views/category_chooser_view.js @@ -9,7 +9,7 @@ Discourse.CategoryChooserView = Discourse.ComboboxView.extend({ classNames: ['combobox category-combobox'], overrideWidths: true, - dataAttributes: ['name', 'color', 'text_color', 'description_text', 'topic_count'], + dataAttributes: ['name', 'color', 'text_color', 'description_text', 'topic_count', 'read_restricted'], valueBinding: Ember.Binding.oneWay('source'), content: Em.computed.filter('categories', function(c) { @@ -36,7 +36,7 @@ Discourse.CategoryChooserView = Discourse.ComboboxView.extend({ if (!templateData.color) return text; var result = "
" + templateData.name + "
"; + templateData.text_color + ";'>" + (templateData.read_restricted === 'true' ? " " : "") + templateData.name + ""; result += "
× " + templateData.topic_count + "
";