From bcef81c0069b758a5284dfbbf4b18d54c6027557 Mon Sep 17 00:00:00 2001 From: llj Date: Mon, 20 Feb 2017 11:13:33 +0800 Subject: [PATCH] [side nav] fix for non-backbone pages --- seahub/templates/base.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/seahub/templates/base.html b/seahub/templates/base.html index 5a111f07e5..16c66e10c8 100644 --- a/seahub/templates/base.html +++ b/seahub/templates/base.html @@ -210,6 +210,11 @@ $('.js-close-side-nav').click(function() { $('.side-nav').css({'left': '-300px'}); return false; }); +$(window).resize(function() { + if ($(window).width() >= 768) { + $('.side-nav').css({'left': 0}); + } +}); {% block extra_script %}{% endblock %}