updated modal code
This commit is contained in:
parent
8e95ae4ff5
commit
323ab5ae98
@ -24,15 +24,16 @@
|
||||
{% endblock %}
|
||||
{% block js %}
|
||||
<script type="text/javascript">
|
||||
var interval;
|
||||
$(document).ready(function() {
|
||||
$.ajaxSetup({ cache: false });
|
||||
window.setInterval(refresh_page, 1000);
|
||||
interval = window.setInterval(refresh_page, 1000);
|
||||
});
|
||||
|
||||
function refresh_page() {
|
||||
$('#desk_data').load('#');
|
||||
$('#modal-wrapper').load('{% url 'accountmodal' %}', function() {
|
||||
$('.modal').modal('hide');
|
||||
window.clearInterval(interval);
|
||||
$('#accountsmodal').modal('show');
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user