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
79 catch79 catch
80 return80 return
81 81
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
82 setSize: (value) ->90 setSize: (value) ->
83 try91 try
84 Cookies.set SIZE_KEY, value, path: '/', expires: 1e892 Cookies.set SIZE_KEY, value, path: '/', expires: 1e8