FIX: search of site settings supports space or underscore

This commit is contained in:
Neil Lalonde 2014-04-07 11:14:12 -04:00
parent 4a2438edc3
commit a784583004

View file

@ -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;