fix(partsTable, annotationsModal): correct table height and restore "Torna alle Parti"

- partsTable: reduce excessive height to prevent oversized rendering
- annotationsModal: fix "Torna alle Parti" button behavior to return to parts view
This commit is contained in:
2025-10-30 10:26:46 +04:00
parent 1c2b4ab7a6
commit f6ea17388c
3 changed files with 9 additions and 3 deletions
+7 -1
View File
@@ -32,6 +32,8 @@ $(document).ready(function () {
trfHeader,
});
$("#annotationsModal").attr('data-iddatadb', iddatadb);
if (!iddatadb && !idquotations) {
const errorMsg = $(
'<div class="alert alert-danger temp-alert" role="alert">Errore: ID TRF mancante. Impossibile inizializzare il modale delle annotazioni.</div>',
@@ -547,7 +549,11 @@ $(document).ready(function () {
focus: true,
});
modal.show();
}
} else {
let iddatadb = $("#annotationsModal").attr('data-iddatadb');
$("button.parts-btn[data-iddatadb='" + iddatadb + "']").trigger('click');
}
},
).fail(function (xhr) {
console.error("Errore caricamento modale parti:", xhr);