Browse Source

Don't expand truncated sidebar items on mobile

Thibaut 11 years ago
parent
commit
2de5d012c3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      assets/javascripts/views/sidebar/sidebar.coffee

+ 1 - 1
assets/javascripts/views/sidebar/sidebar.coffee

@@ -10,7 +10,7 @@ class app.views.Sidebar extends app.View
     escape: 'onEscape'
 
   init: ->
-    @addSubview @hover  = new app.views.SidebarHover @el unless $.isTouchScreen()
+    @addSubview @hover  = new app.views.SidebarHover @el unless app.isMobile() or $.isTouchScreen()
     @addSubview @search = new app.views.Search
 
     @search