Improve automatic show/hide of sidebar

pull/602/head
Thibaut Courouble 8 years ago
parent 7980abde69
commit c01782a02e

@ -6,6 +6,9 @@ class app.views.Sidebar extends app.View
select: 'onSelect' select: 'onSelect'
click: 'onClick' click: 'onClick'
@routes:
after: 'afterRoute'
@shortcuts: @shortcuts:
altR: 'onAltR' altR: 'onAltR'
escape: 'onEscape' escape: 'onEscape'
@ -133,3 +136,7 @@ class app.views.Sidebar extends app.View
@docList.onEnabled() @docList.onEnabled()
@reset() @reset()
return return
afterRoute: =>
@resetDisplay()
return

Loading…
Cancel
Save