diff --git a/assets/javascripts/views/sidebar/sidebar.coffee b/assets/javascripts/views/sidebar/sidebar.coffee index f3ae3bd4..3dce0fc1 100644 --- a/assets/javascripts/views/sidebar/sidebar.coffee +++ b/assets/javascripts/views/sidebar/sidebar.coffee @@ -28,10 +28,14 @@ class app.views.Sidebar extends app.View app.on 'ready', @onReady - $.on document.documentElement, 'mouseleave', (event) => @display() unless event.clientX <= 0 + $.on document.documentElement, 'mouseleave', => @hide() $.on document.documentElement, 'mouseenter', => @resetDisplay(forceNoHover: false) return + hide: -> + @removeClass 'show' + return + display: -> @addClass 'show' return