]> git.0d.be Git - panikdb.git/blobdiff - panikdb/templates/home.html
move day program fragment to django-panik-nonstop module
[panikdb.git] / panikdb / templates / home.html
index fe6df3ef872daabafd17448479b12c6e0ad19aa1..4c58473af3203cf1cff37a58f29ef0b4d98eb0f7 100644 (file)
@@ -151,12 +151,15 @@ Aucune actu.
 {% block sidebar %}
 <aside id="sidebar">
 
-<div class="block" id="program" data-url="{% url 'program' %}">
+<div class="block program" data-url="{% url 'nonstop-ajax-program' date='' %}">
 <h3>Au programme</h3>
 <div></div>
 <script>
 $(function() {
-  $('#program > div').load($('#program').data('url'));
+  $('.block.program').each(function() {
+    var url = $(this).data('url');
+    $(this).find('> div').load(url);
+  });
 });
 </script>
 </div>