Fixed Generate Script
This commit is contained in:
@@ -8,4 +8,22 @@ function show_details(){
|
||||
})
|
||||
})
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
function aggiornaDati() {
|
||||
fetch('/process/ajax-refresh.php')
|
||||
.then(response => response.text())
|
||||
.then(html => {
|
||||
const container = document.getElementById('main-container');
|
||||
if (container) {
|
||||
container.innerHTML = html;
|
||||
|
||||
// Se hai funzioni tipo show_details()
|
||||
if (typeof show_details === "function") {
|
||||
show_details();
|
||||
}
|
||||
}
|
||||
})
|
||||
.catch(error => console.error('Errore AJAX:', error));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user