Fix history stuff so it doesn't affect mobile hamburger button

This commit is contained in:
Jason McBrayer 2018-09-18 10:53:21 -04:00
parent 63dc8fac53
commit 62dbc3a1f7
2 changed files with 3 additions and 3 deletions

View File

@ -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);
}

View File

@ -42,7 +42,7 @@
<link rel="icon" href="{% static "images/brutaldon.png" %}" type="image/png">
{% endif %}
</head>
<body class="has-navbar-fixed-top" ic-history-elt="true"
<body class="has-navbar-fixed-top"
ic-global-include='{"csrfmiddlewaretoken": "{{ csrf_token }}"}'>
<div id="page-load-indicator">&nbsp</div>
{% block navbar %}
@ -169,7 +169,7 @@
{% endif %}
</nav>
{% endblock %}
<section id="main" class="section">
<section id="main" class="section" ic-history-elt="true">
<div class="container">
{% block content %}
<h1 class="title">