Commit 851dcfe3 authored by fred's avatar fred

use normal popup for add diffusion form

parent e9ac8244
......@@ -11,7 +11,7 @@
<p>
<a class="button" href="edit/">Modifier</a>
{% if perms.emissions.add_diffusion %}
<a class="button" id="add-diffusion-link" href="#">Ajouter une diffusion</a>
<a class="button" href="add-diffusion" rel="popup">Ajouter une diffusion</a>
{% endif %}
<a class="button" id="add-soundfile-link" href="#">Ajouter un son</a>
{% if episode.effective_start and episode.effective_end %}
......@@ -74,14 +74,6 @@ Tags :
{% endfor %}
</ul>
<form id="add-diffusion-form" action="add-diffusion" method="POST" style="display: none;">
{% csrf_token %}
{{ add_diffusion_form.as_p }}
<button>Ajouter cet horaire</button>
<button class="cancel">Annuler</button>
</form>
<h3>Sons</h3>
......@@ -147,11 +139,6 @@ $(function() {
$('#add-soundfile-form').dialog({modal: true, title: 'Son', width: 'auto'});
});
$('#add-diffusion-link').click(
function() {
$('#add-diffusion-form').dialog({modal: true, title: 'Horaire', width: 'auto'});
});
$('.image img').click(function() { $(this).toggleClass('large'); });
$('#id_fragment').change(function() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment