Fix searching disabled doc via URL not opening first result correctly

Fixes #604.
pull/385/merge
Thibaut Courouble 8 years ago
parent 4f62ccbdbf
commit 82743163c6

@ -70,7 +70,7 @@ class app.views.SearchScope extends app.View
redirectToDoc: (doc) ->
hash = location.hash
app.router.replaceHash('')
window.location = doc.fullPath() + hash
location.assign doc.fullPath() + hash
return
reset: =>

@ -46,7 +46,7 @@ class app.views.Results extends app.View
return
openFirst: ->
@el.firstElementChild?.click()
setTimeout (=> @el.firstElementChild?.click()), 0
return
onDocEnabled: (doc) ->

Loading…
Cancel
Save