fix: la ricerca fulltext parte solamente alla pressione del pulsante invio. feat: aggiunta possibilità di specificare una data per le nuove note.
This commit is contained in:
@@ -106,13 +106,15 @@ const TicketListView = {
|
||||
${(App.lookups.users || []).map(u => `<option value="${u.id}">${u.first_name} ${u.last_name}</option>`).join('')}
|
||||
</select>
|
||||
</div>
|
||||
<div class="filter-group" style="position:relative;">
|
||||
<span class="filter-label">Cliente</span>
|
||||
<input type="text" class="form-input filter-select" id="batch-customer-search" placeholder="Cerca cliente..." autocomplete="off" style="width:160px; padding: 4px 8px; font-family: inherit; font-size: 0.85rem;" />
|
||||
<input type="hidden" id="batch-customer-user-id" />
|
||||
<input type="hidden" id="batch-customer-id" />
|
||||
<div id="batch-customer-suggestions" class="autocomplete-suggestions" style="display:none; top: 100%; left: 0; width: 280px; z-index: 1001;"></div>
|
||||
</div>
|
||||
${(App.lookups.types || []).length > 0 ? `
|
||||
<div class="filter-group">
|
||||
<span class="filter-label">Tipo</span>
|
||||
<select class="filter-select" id="batch-type">
|
||||
<option value="">—</option>
|
||||
${App.lookups.types.map(t => `<option value="${t.id}">${t.name}</option>`).join('')}
|
||||
</select>
|
||||
</div>
|
||||
` : ''}
|
||||
<button class="btn btn-primary btn-sm" id="batch-apply">Applica</button>
|
||||
<button class="btn btn-primary btn-sm" id="batch-merge" disabled style="background: var(--accent-secondary); border-color: var(--accent-secondary); margin-left: 8px;">Unisci Selezionati</button>
|
||||
<button class="btn btn-primary btn-sm" id="batch-open-tabs" disabled style="background: var(--accent-primary); border-color: var(--accent-primary); margin-left: 8px;">Apri ticket in schede</button>
|
||||
@@ -439,6 +441,8 @@ const TicketListView = {
|
||||
if (batchOwner) batchOwner.value = '';
|
||||
const batchResponsible = document.getElementById('batch-responsible');
|
||||
if (batchResponsible) batchResponsible.value = '';
|
||||
const batchType = document.getElementById('batch-type');
|
||||
if (batchType) batchType.value = '';
|
||||
|
||||
this.updateBatchBar();
|
||||
});
|
||||
@@ -620,6 +624,7 @@ const TicketListView = {
|
||||
const batchQueue = document.getElementById('batch-queue')?.value;
|
||||
const batchOwner = document.getElementById('batch-owner')?.value;
|
||||
const batchResponsible = document.getElementById('batch-responsible')?.value;
|
||||
const batchType = document.getElementById('batch-type')?.value;
|
||||
const batchCustomerSearch = document.getElementById('batch-customer-search')?.value.trim();
|
||||
let batchCustomerUserId = document.getElementById('batch-customer-user-id')?.value;
|
||||
let batchCustomerId = document.getElementById('batch-customer-id')?.value;
|
||||
@@ -633,6 +638,7 @@ const TicketListView = {
|
||||
|
||||
if (batchState) updates.ticket_state_id = parseInt(batchState);
|
||||
if (batchQueue) updates.queue_id = parseInt(batchQueue);
|
||||
if (batchType) updates.type_id = parseInt(batchType);
|
||||
if (batchOwner) updates.user_id = parseInt(batchOwner);
|
||||
if (batchResponsible) {
|
||||
updates.responsible_user_id = parseInt(batchResponsible);
|
||||
|
||||
Reference in New Issue
Block a user