mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
FIX: search of site settings supports space or underscore
This commit is contained in:
parent
4a2438edc3
commit
a784583004
1 changed files with 1 additions and 0 deletions
|
@ -40,6 +40,7 @@ Discourse.AdminSiteSettingsController = Ember.ArrayController.extend(Discourse.P
|
||||||
if (self.get('onlyOverridden') && !item.get('overridden')) return false;
|
if (self.get('onlyOverridden') && !item.get('overridden')) return false;
|
||||||
if (filter) {
|
if (filter) {
|
||||||
if (item.get('setting').toLowerCase().indexOf(filter) > -1) return true;
|
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('description').toLowerCase().indexOf(filter) > -1) return true;
|
||||||
if (item.get('value').toLowerCase().indexOf(filter) > -1) return true;
|
if (item.get('value').toLowerCase().indexOf(filter) > -1) return true;
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue