diff options
author | Phil Hughes <me@iamphill.com> | 2016-06-15 20:33:18 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-06-15 20:33:18 +0300 |
commit | 7d9157ff47c1380492a64aa3c7a1e1a7fa6b8e37 (patch) | |
tree | 8fe227aa6d1e8ea423040c19fbc078f719221a50 /app/helpers/nav_helper.rb | |
parent | 9d74eb462298dc553bdaae81cd6476d6c5a1952c (diff) |
Clicking body closes nav
Fixed issue when nav wasn't present
Diffstat (limited to 'app/helpers/nav_helper.rb')
-rw-r--r-- | app/helpers/nav_helper.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/helpers/nav_helper.rb b/app/helpers/nav_helper.rb index d53ee3c45df..3ff8be5e284 100644 --- a/app/helpers/nav_helper.rb +++ b/app/helpers/nav_helper.rb @@ -36,7 +36,8 @@ module NavHelper end def nav_header_class - class_name = " with-horizontal-nav" if defined?(nav) && nav + class_name = '' + class_name << " with-horizontal-nav" if defined?(nav) && nav if pinned_nav? class_name << " header-expanded header-pinned-nav" |