History

Show doc index on escape in single doc mode instead of reloading the page

Thibaut committed 12 years ago

Commit dccc8951 parent bb1642e1 file · +1 −1Browse files

Showing the changes to assets/javascripts (1 of 1 file). Show all

Unified · Split

assets/javascripts/views/layout/document.coffee+1−1
@@ -24,7 +24,7 @@ class app.views.Document extends app.View · 23 unmodified lines
24 app.router.show '/help#shortcuts'24 app.router.show '/help#shortcuts'
25 25
26 onEscape: ->26 onEscape: ->
27 if app.isSingleDoc() then window.location = '/' else app.router.show '/'27 app.router.show if app.isSingleDoc() then app.doc.fullPath() else '/'
28 28
29 onBack: ->29 onBack: ->
30 history.back()30 history.back()