From a78458300481a4e4505b829a30ef73d52fdf9b04 Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Mon, 7 Apr 2014 11:14:12 -0400 Subject: [PATCH] FIX: search of site settings supports space or underscore --- .../admin/controllers/admin_site_settings_controller.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/assets/javascripts/admin/controllers/admin_site_settings_controller.js b/app/assets/javascripts/admin/controllers/admin_site_settings_controller.js index 82a152b8fdc..5d6694bb739 100644 --- a/app/assets/javascripts/admin/controllers/admin_site_settings_controller.js +++ b/app/assets/javascripts/admin/controllers/admin_site_settings_controller.js @@ -40,6 +40,7 @@ Discourse.AdminSiteSettingsController = Ember.ArrayController.extend(Discourse.P if (self.get('onlyOverridden') && !item.get('overridden')) return false; if (filter) { if (item.get('setting').toLowerCase().indexOf(filter) > -1) return true; + if (item.get('setting').toLowerCase().replace(/_/g, ' ').indexOf(filter) > -1) return true; if (item.get('description').toLowerCase().indexOf(filter) > -1) return true; if (item.get('value').toLowerCase().indexOf(filter) > -1) return true; return false;