mirror of https://gitlab.com/brutaldon/brutaldon
Fix history stuff so it doesn't affect mobile hamburger button
This commit is contained in:
parent
63dc8fac53
commit
62dbc3a1f7
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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"> </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">
|
||||
|
|
Loading…
Reference in New Issue