fix page refresh
This commit is contained in:
parent
e1d96b9b76
commit
908464627e
@ -24,13 +24,18 @@ $(document).ready(function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
function refresh_page() {
|
function refresh_page() {
|
||||||
$('#desk_data').load('#');
|
|
||||||
|
$('#row').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