From 62dbc3a1f73ab379200ed61761a24775dcf47be9 Mon Sep 17 00:00:00 2001 From: Jason McBrayer Date: Tue, 18 Sep 2018 10:53:21 -0400 Subject: [PATCH] Fix history stuff so it doesn't affect mobile hamburger button --- brutaldon/static/js/brutaldon-enhancements.js | 2 +- brutaldon/templates/base.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/brutaldon/static/js/brutaldon-enhancements.js b/brutaldon/static/js/brutaldon-enhancements.js index f8f8f22..dddedcc 100644 --- a/brutaldon/static/js/brutaldon-enhancements.js +++ b/brutaldon/static/js/brutaldon-enhancements.js @@ -157,7 +157,7 @@ function restorePlace(ev) var lastScrollPos = sessionStorage.getItem('lastScrollPos'); Intercooler.ready(function (elt) { - if (elt[0].tagName == 'BODY') + if (elt[0].id == 'main') { window.scrollTo(0, lastScrollPos); } diff --git a/brutaldon/templates/base.html b/brutaldon/templates/base.html index e6f4fac..3f6e240 100644 --- a/brutaldon/templates/base.html +++ b/brutaldon/templates/base.html @@ -42,7 +42,7 @@ {% endif %} -
 
{% block navbar %} @@ -169,7 +169,7 @@ {% endif %} {% endblock %} -
+
{% block content %}