Kopírování deadlinu při hodnocení.
This commit is contained in:
parent
ffab712aec
commit
f5c260d79c
1 changed files with 4 additions and 0 deletions
|
@ -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(){
|
||||||
|
|
Loading…
Reference in a new issue