mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 01:55:38 -05:00
One last fix to the search url.
This commit is contained in:
parent
79cbc4bb25
commit
6c87d5792d
1 changed files with 2 additions and 2 deletions
|
@ -253,7 +253,7 @@ class LatestVersionCollection extends CocoCollection
|
|||
class LatestVersionReferenceNode extends TreemaNode
|
||||
searchValueTemplate: '<input placeholder="Search" /><div class="treema-search-results"></div>'
|
||||
valueClass: 'treema-latest-version'
|
||||
url: '/db/article/search'
|
||||
url: '/db/article'
|
||||
lastTerm: null
|
||||
|
||||
constructor: ->
|
||||
|
@ -264,7 +264,7 @@ class LatestVersionReferenceNode extends TreemaNode
|
|||
link = (l for l in links when l.rel is 'db')[0]
|
||||
return unless link
|
||||
parts = (p for p in link.href.split('/') when p.length)
|
||||
@url = "/db/#{parts[1]}/search"
|
||||
@url = "/db/#{parts[1]}"
|
||||
@model = require('models/' + _.string.classify(parts[1]))
|
||||
|
||||
buildValueForDisplay: (valEl) ->
|
||||
|
|
Loading…
Reference in a new issue