From 8e95ae4ff57dd60852aec33866da0e4d91da3a99 Mon Sep 17 00:00:00 2001 From: Alexander Werner Date: Mon, 6 Mar 2017 19:31:35 +0100 Subject: [PATCH] updated modal code --- billard/templates/billard/index.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/billard/templates/billard/index.html b/billard/templates/billard/index.html index 6746d72..a0378c0 100644 --- a/billard/templates/billard/index.html +++ b/billard/templates/billard/index.html @@ -31,9 +31,10 @@ $(document).ready(function() { function refresh_page() { $('#desk_data').load('#'); - $('#accountsmodal').modal('hide'); - $('#modal-wrapper').load('{% url 'accountmodal' %}'); - $('#accountsmodal').modal('show'); + $('#modal-wrapper').load('{% url 'accountmodal' %}', function() { + $('.modal').modal('hide'); + $('#accountsmodal').modal('show'); + }); } {% endblock %}