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() {
$('#desk_data').load('#');
$('#modal-wrapper').load('{% url 'accountmodal' %}', function() {
window.clearInterval(interval);
$('#accountsmodal').modal('show');
if ( $('#accountsmodal').length ) {
window.clearInterval(interval);
$('#accountsmodal').modal('show');
}
});
}
</script>