Skip to content

Commit

Permalink
fix: visualizzazione avviso uscita dalla pagina
Browse files Browse the repository at this point in the history
  • Loading branch information
Pek5892 committed Nov 5, 2024
1 parent 1fedf27 commit 3a3b283
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 3 deletions.
3 changes: 0 additions & 3 deletions editor.php
Original file line number Diff line number Diff line change
Expand Up @@ -524,9 +524,6 @@

var content_was_modified = false;

// Forzatura per annullare il cambio da eventi subito dopo il caricamento iniziale
setTimeout(function() { content_was_modified = false; }, 1000);

// Controllo se digito qualche valore o cambio qualche select
$(".content input, .content textarea, .content select").bind("change paste keyup", function(event) {
if (event.keyCode >= 32) {
Expand Down
1 change: 1 addition & 0 deletions modules/contratti/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,7 @@ function caricaRighe(id_riga) {
$("#barcode").focus();
caricaRighe(null);
content_was_modified = false;
});
$("#idanagrafica_c").change(function() {
Expand Down
1 change: 1 addition & 0 deletions modules/ddt/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,7 @@ function caricaRighe(id_riga) {
});
$("#barcode").focus();
content_was_modified = false;
});
$("#idanagrafica").change(function() {
Expand Down
2 changes: 2 additions & 0 deletions modules/fatture/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -1215,6 +1215,8 @@ function bolloAutomatico() {
});
bolloAutomatico();
content_was_modified = false;
});
input("bollo_automatico").change(function () {
bolloAutomatico();
Expand Down
1 change: 1 addition & 0 deletions modules/interventi/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,7 @@ function caricaCosti() {
});
$("#barcode").focus();
content_was_modified = false;
});
var anagrafica = input("idanagrafica");
Expand Down
1 change: 1 addition & 0 deletions modules/preventivi/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,7 @@ function caricaRighe(id_riga) {
});
$("#barcode").focus();
content_was_modified = false;
});
async function salvaArticolo() {
Expand Down

0 comments on commit 3a3b283

Please sign in to comment.