|
|
@ -4,7 +4,7 @@ class app.models.Doc extends app.Model
|
|
|
|
constructor: ->
|
|
|
|
constructor: ->
|
|
|
|
super
|
|
|
|
super
|
|
|
|
@reset @
|
|
|
|
@reset @
|
|
|
|
@text = @name.toLowerCase()
|
|
|
|
@text = @toEntry().text
|
|
|
|
|
|
|
|
|
|
|
|
reset: (data) ->
|
|
|
|
reset: (data) ->
|
|
|
|
@resetEntries data.entries
|
|
|
|
@resetEntries data.entries
|
|
|
@ -35,7 +35,7 @@ class app.models.Doc extends app.Model
|
|
|
|
"#{app.indexHost()}/#{@index_path}?#{@mtime}"
|
|
|
|
"#{app.indexHost()}/#{@index_path}?#{@mtime}"
|
|
|
|
|
|
|
|
|
|
|
|
toEntry: ->
|
|
|
|
toEntry: ->
|
|
|
|
new app.models.Entry
|
|
|
|
@entry ||= new app.models.Entry
|
|
|
|
doc: @
|
|
|
|
doc: @
|
|
|
|
name: @name
|
|
|
|
name: @name
|
|
|
|
path: 'index'
|
|
|
|
path: 'index'
|
|
|
|