Search docs by name not slug

Fixes #151.
This commit is contained in:
Thibaut 2015-01-16 08:09:26 -05:00
parent 58a463d3d7
commit 39e01bfce8
2 changed files with 2 additions and 1 deletions

View file

@ -4,6 +4,7 @@ class app.models.Doc extends app.Model
constructor: ->
super
@reset @
@text = @name.toLowerCase()
reset: (data) ->
@resetEntries data.entries

View file

@ -28,7 +28,7 @@ class app.views.SearchScope extends app.View
search: (value) ->
unless @doc
@searcher.find app.docs.all(), 'slug', value
@searcher.find app.docs.all(), 'text', value
return
searchUrl: ->