From 3fb74fd88005607029ecc0be7913361a98b126dc Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Fri, 20 Jun 2014 18:02:58 -0400 Subject: [PATCH] FIX: list site settings with no choices will not show the 'No results found' dropdown --- .../javascripts/admin/components/list_setting_component.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/admin/components/list_setting_component.js b/app/assets/javascripts/admin/components/list_setting_component.js index 6a1b2be7d97..2402126c0bd 100644 --- a/app/assets/javascripts/admin/components/list_setting_component.js +++ b/app/assets/javascripts/admin/components/list_setting_component.js @@ -19,7 +19,8 @@ Discourse.ListSettingComponent = Ember.Component.extend({ separator: "|", tokenSeparators: ["|"], tags : this.get("choices") || [], - width: 'off' + width: 'off', + dropdownCss: this.get("choices") ? {} : {display: 'none'} }).on("change", function(obj) { this.set("settingValue", obj.val.join("|")); this.refreshSortables();