|
@ -49,6 +49,10 @@ $(document).ready(function(){ |
|
|
$('.smazat_hodnoceni').click(function(){ |
|
|
$('.smazat_hodnoceni').click(function(){ |
|
|
deleteForm("form",this); |
|
|
deleteForm("form",this); |
|
|
}); |
|
|
}); |
|
|
|
|
|
// Copy deadline |
|
|
|
|
|
if (form_idx !== "0") { |
|
|
|
|
|
$('#id_form-' + form_idx + '-deadline_body')[0].value = $('#id_form-' + (form_idx - 1) + '-deadline_body')[0].value |
|
|
|
|
|
} |
|
|
$('#id_form-TOTAL_FORMS').val(parseInt(form_idx) + 1); |
|
|
$('#id_form-TOTAL_FORMS').val(parseInt(form_idx) + 1); |
|
|
}); |
|
|
}); |
|
|
$('.smazat_hodnoceni').click(function(){ |
|
|
$('.smazat_hodnoceni').click(function(){ |
|
|