This commit is contained in:
MatteoPistorello 2022-06-06 11:24:20 +02:00
commit e963e85fd9
2 changed files with 10 additions and 4 deletions

8
.github/stale.yml vendored
View File

@ -23,22 +23,22 @@ exemptProjects: false
exemptMilestones: false
# Set to true to ignore issues with an assignee (defaults to false)
exemptAssignees: false
exemptAssignees: true
# Label to use when marking as stale
staleLabel: in chiusura
# Comment to post when marking as stale. Set to `false` to disable
markComment: >
Issue chiusa automaticamente in assenza di attività.
Issue in chiusura fra 7 giorni per mancanza di attività.
# Comment to post when removing the stale label.
# unmarkComment: >
# Your comment here.
# Comment to post when closing a stale Issue or Pull Request.
# closeComment: >
# Your comment here.
closeComment: >
Issue chiusa per inattività.
# Limit the number of actions per hour, from 1-30. Default is 30
limitPerRun: 30

View File

@ -131,6 +131,9 @@ if ($record['can_delete']) {
$("#notifica_cliente").attr("disabled", false);
$("#notifica_tecnico_sessione").attr("disabled", false);
$("#notifica_tecnico_assegnato").attr("disabled", false);
$(".btn[for=notifica_cliente]").attr("disabled", false);
$(".btn[for=notifica_tecnico_sessione]").attr("disabled", false);
$(".btn[for=notifica_tecnico_assegnato]").attr("disabled", false);
}else{
$("#email").attr("required", false);
$("#email").attr("disabled", true);
@ -142,6 +145,9 @@ if ($record['can_delete']) {
$("#notifica_cliente").val([0]);
$("#notifica_tecnico_sessione").val([0]);
$("#notifica_tecnico_assegnato").val([0]);
$(".btn[for=notifica_cliente]").attr("disabled", true);
$(".btn[for=notifica_tecnico_sessione]").attr("disabled", true);
$(".btn[for=notifica_tecnico_assegnato]").attr("disabled", true);
}
}
</script>