updated modal code

This commit is contained in:
Alexander Werner 2017-03-06 19:48:59 +01:00
parent 323ab5ae98
commit 51a5d1659a

View File

@ -33,8 +33,10 @@ $(document).ready(function() {
function refresh_page() { function refresh_page() {
$('#desk_data').load('#'); $('#desk_data').load('#');
$('#modal-wrapper').load('{% url 'accountmodal' %}', function() { $('#modal-wrapper').load('{% url 'accountmodal' %}', function() {
if ( $('#accountsmodal').length ) {
window.clearInterval(interval); window.clearInterval(interval);
$('#accountsmodal').modal('show'); $('#accountsmodal').modal('show');
}
}); });
} }
</script> </script>