mirror of
https://github.com/freeCodeCamp/devdocs
synced 2024-11-16 19:48:10 +01:00
Immediately apply layout settings
This commit is contained in:
parent
d2495fbc2e
commit
03d2817300
1 changed files with 2 additions and 1 deletions
|
@ -158,7 +158,8 @@ class app.Settings
|
|||
|
||||
toggleLayout: (layout, enable) ->
|
||||
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())
|
||||
return
|
||||
|
||||
|
|
Loading…
Reference in a new issue