feat: nella pagina nuovo ticket il tab parte dallo stato

This commit is contained in:
Gabriele Cimaschi committed 2026-09-16 15:07:41 +02:00
1 parent a1b6d9333c
commit dcc0456070
1 file changed
+6 -1
+6 -1
View File
@@ -128,7 +128,7 @@ const TicketCreateView = {
<div class="form-grid">
<div class="form-group full-width">
<label class="form-label">Titolo <span class="required">*</span></label>
<input type="text" class="form-input" id="create-title" placeholder="Descrizione breve del problema" autofocus />
<input type="text" class="form-input" id="create-title" placeholder="Descrizione breve del problema" />
</div>
<div class="form-group" style="position:relative;">
@@ -615,6 +615,11 @@ const TicketCreateView = {
}
});
// Set focus on State dropdown (#create-state) on page load
setTimeout(() => {
document.getElementById('create-state')?.focus();
}, 50);
submitBtn.addEventListener('click', async () => {
const title = document.getElementById('create-title').value.trim();
const queue_id = queueIdInput.value;