rebuild location index and detail view
This commit is contained in:
25
billard/templates/billard/location_detail.html
Normal file
25
billard/templates/billard/location_detail.html
Normal file
@@ -0,0 +1,25 @@
|
||||
{% extends 'billard/base.html' %}
|
||||
|
||||
{% block title %}Standort{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div id="desk_data">
|
||||
{% include 'billard/location_detail_ajax.html' %}
|
||||
</div>
|
||||
<div id="modal-wrapper">
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
{% block js %}
|
||||
<script type="text/javascript">
|
||||
var interval;
|
||||
$(document).ready(function() {
|
||||
$.ajaxSetup({ cache: false });
|
||||
interval = window.setInterval(refresh_page, 1000);
|
||||
});
|
||||
|
||||
function refresh_page() {
|
||||
$('#desk_data').load('#');
|
||||
}
|
||||
</script>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user