diff options
author | Phil Hughes <me@iamphill.com> | 2016-03-10 20:04:45 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-03-14 14:39:56 +0300 |
commit | ce9bbce78a258b43181766bcbebad7add90968ff (patch) | |
tree | 74dd880e2ec1f8fe9cc03004f3257944d70d874b /app/assets | |
parent | b155d54941ab5bb4eb07c1774ba3a2dfbb9f2707 (diff) |
changed jquery document ready
Diffstat (limited to 'app/assets')
-rw-r--r-- | app/assets/javascripts/sidebar.js.coffee | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/sidebar.js.coffee b/app/assets/javascripts/sidebar.js.coffee index dfa69dd6a47..1ffb6619ab5 100644 --- a/app/assets/javascripts/sidebar.js.coffee +++ b/app/assets/javascripts/sidebar.js.coffee @@ -20,7 +20,7 @@ $(document).on("click", '.toggle-nav-collapse', (e) -> toggleSidebar() ) -$(document).ready -> +$ -> if $(window).width() < mobileWidth if $('.page-with-sidebar').hasClass(expanded) toggleSidebar() |