updated modal code
This commit is contained in:
		@@ -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');
 | 
			
		||||
    });
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user