Miglioramento richiesta AJAX per righe

This commit is contained in:
Dasc3er 2020-09-14 11:06:35 +02:00
parent 1298a321a0
commit 91b51b4f7c
6 changed files with 16 additions and 8 deletions

View File

@ -397,7 +397,8 @@ function caricaRighe() {
let container = $("#righe");
localLoading(container, true);
return container.load("'.$structure->fileurl('row-list.php').'?id_module='.$id_module.'&id_record='.$id_record.'", function() {
return $.get("'.$structure->fileurl('row-list.php').'?id_module='.$id_module.'&id_record='.$id_record.'", function(data) {
container.html(data);
localLoading(container, false);
});
}

View File

@ -409,7 +409,8 @@ function caricaRighe() {
let container = $("#righe");
localLoading(container, true);
return container.load("'.$structure->fileurl('row-list.php').'?id_module='.$id_module.'&id_record='.$id_record.'", function() {
return $.get("'.$structure->fileurl('row-list.php').'?id_module='.$id_module.'&id_record='.$id_record.'", function(data) {
container.html(data);
localLoading(container, false);
});
}

View File

@ -866,7 +866,8 @@ function caricaRighe() {
let container = $("#righe");
localLoading(container, true);
return container.load("'.$structure->fileurl('row-list.php').'?id_module='.$id_module.'&id_record='.$id_record.'", function() {
return $.get("'.$structure->fileurl('row-list.php').'?id_module='.$id_module.'&id_record='.$id_record.'", function(data) {
container.html(data);
localLoading(container, false);
});
}

View File

@ -496,7 +496,8 @@ function caricaRighe() {
let container = $("#righe");
localLoading(container, true);
return container.load("'.$structure->fileurl('row-list.php').'?id_module='.$id_module.'&id_record='.$id_record.'", function() {
return $.get("'.$structure->fileurl('row-list.php').'?id_module='.$id_module.'&id_record='.$id_record.'", function(data) {
container.html(data);
localLoading(container, false);
});
}
@ -508,7 +509,8 @@ function caricaTecnici() {
let container = $("#tecnici");
localLoading(container, true);
return container.load("'.$structure->fileurl('ajax_tecnici.php').'?id_module='.$id_module.'&id_record='.$id_record.'", function() {
return $.get("'.$structure->fileurl('ajax_tecnici.php').'?id_module='.$id_module.'&id_record='.$id_record.'", function(data) {
container.html(data);
localLoading(container, false);
});
}
@ -520,7 +522,8 @@ function caricaCosti() {
let container = $("#costi");
localLoading(container, true);
return container.load("'.$structure->fileurl('ajax_costi.php').'?id_module='.$id_module.'&id_record='.$id_record.'", function() {
return $.get("'.$structure->fileurl('ajax_costi.php').'?id_module='.$id_module.'&id_record='.$id_record.'", function(data) {
container.html(data);
localLoading(container, false);
});
}

View File

@ -288,7 +288,8 @@ function caricaRighe() {
let container = $("#righe");
localLoading(container, true);
return container.load("'.$structure->fileurl('row-list.php').'?id_module='.$id_module.'&id_record='.$id_record.'", function() {
return $.get("'.$structure->fileurl('row-list.php').'?id_module='.$id_module.'&id_record='.$id_record.'", function(data) {
container.html(data);
localLoading(container, false);
});
}

View File

@ -295,7 +295,8 @@ function caricaRighe() {
let container = $("#righe");
localLoading(container, true);
return container.load("'.$structure->fileurl('row-list.php').'?id_module='.$id_module.'&id_record='.$id_record.'", function() {
return $.get("'.$structure->fileurl('row-list.php').'?id_module='.$id_module.'&id_record='.$id_record.'", function(data) {
container.html(data);
localLoading(container, false);
});
}