History

Hide/Show sidebar when dragging it or typing into the search input

cristian.corcoveanu committed 10 years ago

Commit dd4b9bf1 parent a83c4914 files · +24 −4Browse files

Showing the changes to assets/javascripts/app (1 of 4 files). Show all

Unified · Split

assets/javascripts/app/settings.coffee+8−0
@@ -79,6 +79,14 @@ class app.Settings · 78 unmodified lines
7979 catch
8080 return
8181
82+ hasLayout: (name) ->
83+ try
84+ layout = (Cookies.get(LAYOUT_KEY) || '').split(' ')
85+ $.arrayDelete(layout, '')
86+ return layout.indexOf(name) isnt -1
87+ catch
88+ return false
89+
8290 setSize: (value) ->
8391 try
8492 Cookies.set SIZE_KEY, value, path: '/', expires: 1e8