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');
|
var lastScrollPos = sessionStorage.getItem('lastScrollPos');
|
||||||
Intercooler.ready(function (elt)
|
Intercooler.ready(function (elt)
|
||||||
{
|
{
|
||||||
if (elt[0].tagName == 'BODY')
|
if (elt[0].id == 'main')
|
||||||
{
|
{
|
||||||
window.scrollTo(0, lastScrollPos);
|
window.scrollTo(0, lastScrollPos);
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
<link rel="icon" href="{% static "images/brutaldon.png" %}" type="image/png">
|
<link rel="icon" href="{% static "images/brutaldon.png" %}" type="image/png">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</head>
|
</head>
|
||||||
<body class="has-navbar-fixed-top" ic-history-elt="true"
|
<body class="has-navbar-fixed-top"
|
||||||
ic-global-include='{"csrfmiddlewaretoken": "{{ csrf_token }}"}'>
|
ic-global-include='{"csrfmiddlewaretoken": "{{ csrf_token }}"}'>
|
||||||
<div id="page-load-indicator"> </div>
|
<div id="page-load-indicator"> </div>
|
||||||
{% block navbar %}
|
{% block navbar %}
|
||||||
|
@ -169,7 +169,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</nav>
|
</nav>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
<section id="main" class="section">
|
<section id="main" class="section" ic-history-elt="true">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h1 class="title">
|
<h1 class="title">
|
||||||
|
|
Loading…
Reference in New Issue