mirror of
https://github.com/freeCodeCamp/devdocs
synced 2024-11-18 10:07:11 +01:00
parent
58a463d3d7
commit
39e01bfce8
2 changed files with 2 additions and 1 deletions
|
@ -4,6 +4,7 @@ class app.models.Doc extends app.Model
|
|||
constructor: ->
|
||||
super
|
||||
@reset @
|
||||
@text = @name.toLowerCase()
|
||||
|
||||
reset: (data) ->
|
||||
@resetEntries data.entries
|
||||
|
|
|
@ -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: ->
|
||||
|
|
Loading…
Reference in a new issue