added alert flag and variation flag
This commit is contained in:
@@ -135,6 +135,8 @@
|
||||
$('#dlEmployees').val(null).trigger('change');
|
||||
$('#dlFunction').val('').trigger('change');
|
||||
$('#notify_function').prop('checked', false);
|
||||
$('#dlVariazioni').prop('checked', false);
|
||||
$('#dlAttivaAlert').prop('checked', false);
|
||||
renderAttachments([]);
|
||||
modal.show();
|
||||
};
|
||||
@@ -164,7 +166,8 @@
|
||||
document.getElementById('dlNotifDays').value = d.notification_days || 7;
|
||||
document.getElementById('dlStorage').value = d.storage_location || '';
|
||||
document.getElementById('dlNotes').value = d.notes || '';
|
||||
document.getElementById('dlVariazioni').value = d.variazioni || '';
|
||||
$('#dlVariazioni').prop('checked', Number(d.variazioni) === 1);
|
||||
$('#dlAttivaAlert').prop('checked', Number(d.attiva_alert) === 1);
|
||||
document.getElementById('dlFiles').value = '';
|
||||
document.getElementById('modalTitle').textContent = 'Modifica Scadenza';
|
||||
$('#dlDepartments').val(d.department_names || []).trigger('change');
|
||||
|
||||
Reference in New Issue
Block a user