fix page refresh
This commit is contained in:
parent
908464627e
commit
f5222055d2
@ -8,7 +8,7 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="row">
|
<div id="desk_data" class="row">
|
||||||
{% include 'billard/location_detail_ajax.html' %}
|
{% include 'billard/location_detail_ajax.html' %}
|
||||||
</div>
|
</div>
|
||||||
<div id="modal-wrapper">
|
<div id="modal-wrapper">
|
||||||
@ -25,17 +25,13 @@
|
|||||||
|
|
||||||
function refresh_page() {
|
function refresh_page() {
|
||||||
|
|
||||||
$('#row').load('#');
|
$('#desk_data').load('#');
|
||||||
$('#modal-wrapper').load('{% url 'billard:account_modal' loc_pk=pk %}', function () {
|
$('#modal-wrapper').load('{% url 'billard:account_modal' loc_pk=pk %}', function () {
|
||||||
if ($('#accountsmodal').length) {
|
if ($('#accountsmodal').length) {
|
||||||
window.clearInterval(interval);
|
window.clearInterval(interval);
|
||||||
$('#accountsmodal').modal('show');
|
$('#accountsmodal').modal('show');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
setTimeout(function () {
|
|
||||||
location.reload();
|
|
||||||
}, 1000);
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
{% endblock %}
|
{% endblock %}
|
Loading…
Reference in New Issue
Block a user