|
|
@ -51,6 +51,9 @@ class app.views.Sidebar extends app.View
|
|
|
|
@show @results
|
|
|
|
@show @results
|
|
|
|
return
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
reset: ->
|
|
|
|
|
|
|
|
@showDocList true
|
|
|
|
|
|
|
|
|
|
|
|
saveScrollPosition: ->
|
|
|
|
saveScrollPosition: ->
|
|
|
|
if @view is @docList
|
|
|
|
if @view is @docList
|
|
|
|
@scrollTop = @el.scrollTop
|
|
|
|
@scrollTop = @el.scrollTop
|
|
|
@ -75,7 +78,7 @@ class app.views.Sidebar extends app.View
|
|
|
|
onClick: (event) =>
|
|
|
|
onClick: (event) =>
|
|
|
|
if event.target.hasAttribute? 'data-reset-list'
|
|
|
|
if event.target.hasAttribute? 'data-reset-list'
|
|
|
|
$.stopEvent(event)
|
|
|
|
$.stopEvent(event)
|
|
|
|
@showDocList true
|
|
|
|
@reset()
|
|
|
|
return
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
|
|
onGlobalClick: (event) =>
|
|
|
|
onGlobalClick: (event) =>
|
|
|
@ -87,10 +90,10 @@ class app.views.Sidebar extends app.View
|
|
|
|
return
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
|
|
onAltR: =>
|
|
|
|
onAltR: =>
|
|
|
|
@showDocList true
|
|
|
|
@reset()
|
|
|
|
return
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
|
|
onEscape: =>
|
|
|
|
onEscape: =>
|
|
|
|
@showDocList true
|
|
|
|
@reset()
|
|
|
|
@scrollToTop()
|
|
|
|
@scrollToTop()
|
|
|
|
return
|
|
|
|
return
|
|
|
|