|
|
@ -24,7 +24,12 @@ class app.Settings
|
|
|
|
'news'
|
|
|
|
'news'
|
|
|
|
]
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
LAYOUTS: ['_max-width', '_sidebar-hidden', '_native-scrollbars']
|
|
|
|
LAYOUTS: [
|
|
|
|
|
|
|
|
'_max-width'
|
|
|
|
|
|
|
|
'_sidebar-hidden'
|
|
|
|
|
|
|
|
'_native-scrollbars'
|
|
|
|
|
|
|
|
'_text-justify-hyphenate'
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
@defaults:
|
|
|
|
@defaults:
|
|
|
|
count: 0
|
|
|
|
count: 0
|
|
|
@ -153,7 +158,8 @@ class app.Settings
|
|
|
|
|
|
|
|
|
|
|
|
toggleLayout: (layout, enable) ->
|
|
|
|
toggleLayout: (layout, enable) ->
|
|
|
|
classList = document.body.classList
|
|
|
|
classList = document.body.classList
|
|
|
|
classList.toggle(layout, enable) unless app.router?.isSettings
|
|
|
|
# sidebar is always shown for settings; its state is updated in app.views.Settings
|
|
|
|
|
|
|
|
classList.toggle(layout, enable) unless layout is '_sidebar-hidden' and app.router?.isSettings
|
|
|
|
classList.toggle('_overlay-scrollbars', $.overlayScrollbarsEnabled())
|
|
|
|
classList.toggle('_overlay-scrollbars', $.overlayScrollbarsEnabled())
|
|
|
|
return
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
|
|