Fixes #151.
Showing the changes to assets/javascripts (2 of 2 files). Show all
Unified · Split
| @@ -4,6 +4,7 @@ class app.models.Doc extends app.Model · 3 unmodified lines | ||
| 4 | 4 | constructor: -> |
| 5 | 5 | super |
| 6 | 6 | @reset @ |
| 7 | + @text = @name.toLowerCase() | |
| 7 | 8 | |
| 8 | 9 | reset: (data) -> |
| 9 | 10 | @resetEntries data.entries |
| @@ -28,7 +28,7 @@ class app.views.SearchScope extends app.View · 27 unmodified lines | ||
| 28 | 28 | |
| 29 | 29 | search: (value) -> |
| 30 | 30 | unless @doc |
| 31 | − @searcher.find app.docs.all(), 'slug', value | |
| 31 | + @searcher.find app.docs.all(), 'text', value | |
| 32 | 32 | return |
| 33 | 33 | |
| 34 | 34 | searchUrl: -> |