mirror of
https://gitlab.com/brutaldon/brutaldon
synced 2025-02-11 17:10:42 +01:00
Change which element to use for pull-to-refresh
This commit is contained in:
parent
133a35bcc5
commit
99032361b0
@ -49,7 +49,7 @@
|
|||||||
<div id="page-load-indicator"> </div>
|
<div id="page-load-indicator"> </div>
|
||||||
{% block navbar %}
|
{% block navbar %}
|
||||||
<nav class="navbar is-fixed-top is-primary" role="navigation"
|
<nav class="navbar is-fixed-top is-primary" role="navigation"
|
||||||
aria-label="main navigation">
|
aria-label="main navigation" id="main-nav-bar">
|
||||||
<div class="navbar-brand">
|
<div class="navbar-brand">
|
||||||
<a class="navbar-item" href="{% url "home" %}"
|
<a class="navbar-item" href="{% url "home" %}"
|
||||||
ic-get-from="{% url "home" %}"
|
ic-get-from="{% url "home" %}"
|
||||||
@ -171,7 +171,6 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</nav>
|
</nav>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
<div id="main-outer">
|
|
||||||
<section id="main" class="section" ic-history-elt="true">
|
<section id="main" class="section" ic-history-elt="true">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
{% block content %}
|
{% block content %}
|
||||||
@ -184,7 +183,6 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
|
||||||
|
|
||||||
<footer class="footer">
|
<footer class="footer">
|
||||||
<div class="level">
|
<div class="level">
|
||||||
@ -215,11 +213,11 @@
|
|||||||
<script type="application/javascript">
|
<script type="application/javascript">
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
menuPrepare();
|
menuPrepare();
|
||||||
$("#main-outer").pullToRefresh({
|
$("#main-nav-bar").pullToRefresh({
|
||||||
refresh: 200,
|
refresh: 200,
|
||||||
simulateTouch: false,
|
simulateTouch: false,
|
||||||
threshold: 100,
|
threshold: 100,
|
||||||
scroll: "#main-outer",
|
scroll: "main-nav-bar",
|
||||||
});
|
});
|
||||||
$(document).on("refresh.pulltorefresh", function ($element, y){
|
$(document).on("refresh.pulltorefresh", function ($element, y){
|
||||||
$("page-load-indicator").show();
|
$("page-load-indicator").show();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user