This commit is contained in:
Pek5892 2023-04-06 13:11:38 +02:00
parent 177e9db94b
commit 0484f48854
12 changed files with 19 additions and 1 deletions

View File

@ -535,6 +535,7 @@ async function salvaArticolo() {
$("#barcode").val("");
$("#id_articolo").selectReset();
content_was_modified = false;
caricaRighe(null);
}
});

View File

@ -345,6 +345,7 @@ async function modificaRiga(button) {
$(button).tooltipster("close");
// Apertura modal
content_was_modified = false;
openModal("'.tr('Modifica riga').'", "'.$module->fileurl('row-edit.php').'?id_module=" + globals.id_module + "&id_record=" + globals.id_record + "&riga_id=" + id + "&riga_type=" + type);
}
@ -377,6 +378,7 @@ function rimuoviRiga(id) {
righe: id,
},
success: function (response) {
content_was_modified = false;
location.reload();
},
error: function() {

View File

@ -576,6 +576,7 @@ async function salvaArticolo() {
$("#barcode").val("");
$("#id_articolo").selectReset();
content_was_modified = false;
caricaRighe(null);
}
});

View File

@ -391,6 +391,7 @@ async function modificaRiga(button) {
$(button).tooltipster("close");
// Apertura modal
content_was_modified = false;
openModal("'.tr('Modifica riga').'", "'.$module->fileurl('row-edit.php').'?id_module=" + globals.id_module + "&id_record=" + globals.id_record + "&riga_id=" + id + "&riga_type=" + type);
}
@ -423,6 +424,7 @@ function rimuoviRiga(id) {
righe: id,
},
success: function (response) {
content_was_modified = false;
location.reload();
},
error: function() {

View File

@ -1183,6 +1183,7 @@ async function salvaArticolo() {
$("#barcode").val("");
$("#id_articolo").selectReset();
content_was_modified = false;
caricaRighe(null);
}
});

View File

@ -525,6 +525,7 @@ async function modificaRiga(button) {
$(button).tooltipster("close");
// Apertura modal
content_was_modified = false;
openModal("'.tr('Modifica riga').'", "'.$module->fileurl('row-edit.php').'?id_module=" + globals.id_module + "&id_record=" + globals.id_record + "&riga_id=" + id + "&riga_type=" + type);
}
@ -557,6 +558,7 @@ function rimuoviRiga(id) {
righe: id,
},
success: function (response) {
content_was_modified = false;
location.reload();
},
error: function() {

View File

@ -93,7 +93,7 @@ echo '
<div class="col-md-6">';
$idcontratto_riga = $dbo->fetchOne('SELECT id FROM co_promemoria WHERE idintervento='.prepare($id_record))['id'];
$idpreventivo_riga = $dbo->fetchOne('SELECT id FROM co_promemoria WHERE idintervento='.prepare($id_record))['id'];
if (!empty($record['idcontratto'])) {
echo '
@ -828,6 +828,7 @@ $(document).ready(function() {
$("#barcode").val("");
$("#id_articolo").selectReset();
content_was_modified = false;
caricaRighe(null);
caricaCosti();
}

View File

@ -300,6 +300,7 @@ async function modificaRiga(button) {
$(button).tooltipster("close");
// Apertura modal
content_was_modified = false;
openModal("'.tr('Modifica sessione').'", "'.$module->fileurl('row-edit.php').'?id_module=" + globals.id_module + "&id_record=" + globals.id_record + "&riga_id=" + id + "&riga_type=" + type);
}
@ -332,6 +333,7 @@ function rimuoviRiga(id) {
righe: id,
},
success: function (response) {
content_was_modified = false;
location.reload();
},
error: function() {

View File

@ -434,6 +434,7 @@ async function salvaArticolo() {
$("#barcode").val("");
$("#id_articolo").selectReset();
content_was_modified = false;
caricaRighe(null);
}
});

View File

@ -436,6 +436,7 @@ async function modificaRiga(button) {
$(button).tooltipster("close");
// Apertura modal
content_was_modified = false;
openModal("'.tr('Modifica riga').'", "'.$module->fileurl('row-edit.php').'?id_module=" + globals.id_module + "&id_record=" + globals.id_record + "&riga_id=" + id + "&riga_type=" + type);
}
@ -468,6 +469,7 @@ function rimuoviRiga(id) {
righe: id,
},
success: function (response) {
content_was_modified = false;
location.reload();
},
error: function() {

View File

@ -451,6 +451,7 @@ async function salvaArticolo() {
$("#barcode").val("");
$("#id_articolo").selectReset();
content_was_modified = false;
caricaRighe(null);
}
});

View File

@ -404,6 +404,7 @@ async function modificaRiga(button) {
$(button).tooltipster("close");
// Apertura modal
content_was_modified = false;
openModal("'.tr('Modifica riga').'", "'.$module->fileurl('row-edit.php').'?id_module=" + globals.id_module + "&id_record=" + globals.id_record + "&riga_id=" + id + "&riga_type=" + type);
}
@ -436,6 +437,7 @@ function rimuoviRiga(id) {
righe: id,
},
success: function (response) {
content_was_modified = false;
location.reload();
},
error: function() {