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:
parent
1c2b4ab7a6
commit
f6ea17388c
@ -32,6 +32,8 @@ $(document).ready(function () {
|
|||||||
trfHeader,
|
trfHeader,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$("#annotationsModal").attr('data-iddatadb', iddatadb);
|
||||||
|
|
||||||
if (!iddatadb && !idquotations) {
|
if (!iddatadb && !idquotations) {
|
||||||
const errorMsg = $(
|
const errorMsg = $(
|
||||||
'<div class="alert alert-danger temp-alert" role="alert">Errore: ID TRF mancante. Impossibile inizializzare il modale delle annotazioni.</div>',
|
'<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,
|
focus: true,
|
||||||
});
|
});
|
||||||
modal.show();
|
modal.show();
|
||||||
}
|
} else {
|
||||||
|
let iddatadb = $("#annotationsModal").attr('data-iddatadb');
|
||||||
|
|
||||||
|
$("button.parts-btn[data-iddatadb='" + iddatadb + "']").trigger('click');
|
||||||
|
}
|
||||||
},
|
},
|
||||||
).fail(function (xhr) {
|
).fail(function (xhr) {
|
||||||
console.error("Errore caricamento modale parti:", xhr);
|
console.error("Errore caricamento modale parti:", xhr);
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<div class="row main-row">
|
<div class="row parts-row">
|
||||||
<div class="col-md-9">
|
<div class="col-md-9">
|
||||||
<!-- Prima riga: Elenco Parti, Rinumera, Voce -->
|
<!-- Prima riga: Elenco Parti, Rinumera, Voce -->
|
||||||
<div style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px;">
|
<div style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px;">
|
||||||
|
|||||||
@ -2012,7 +2012,7 @@ $(document).on("click", ".save-common-note-btn", function () {
|
|||||||
});
|
});
|
||||||
|
|
||||||
$(document).on("click", "#showHideImageBtn", function () {
|
$(document).on("click", "#showHideImageBtn", function () {
|
||||||
let mainRow = $(this).closest(".main-row");
|
let mainRow = $(this).closest(".parts-row");
|
||||||
let photoContainer = mainRow.find(".col-md-3");
|
let photoContainer = mainRow.find(".col-md-3");
|
||||||
let tableContainer = mainRow.find("#partsTable").closest("div[class*='col-md']");
|
let tableContainer = mainRow.find("#partsTable").closest("div[class*='col-md']");
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user