fix code for accounting modal view

This commit is contained in:
2017-04-27 13:56:18 +02:00
parent 7ad3a3e22d
commit f0ed2a5195
4 changed files with 35 additions and 23 deletions

View File

@@ -22,7 +22,7 @@
</table>
</div>
<div class="modal-footer">
<a class="btn btn-default btn-primary" href="{% url 'accountmodalconfirm' account.pk %}">Schliessen</a>
<a class="btn btn-default btn-primary" href="{% url 'billard:account_modal_confirm' pk=account.id %}">Schliessen</a>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->

View File

@@ -20,6 +20,12 @@ $(document).ready(function() {
function refresh_page() {
$('#desk_data').load('#');
$('#modal-wrapper').load('{% url 'billard:account_modal' %}', function() {
if ( $('#accountsmodal').length ) {
window.clearInterval(interval);
$('#accountsmodal').modal('show');
}
});
}
</script>
{% endblock %}