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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user