Animazione di caricamento piano dei conti

This commit is contained in:
Thomas Zilio 2019-07-15 09:34:14 +02:00
parent 9e83ba87ee
commit ee4f384066
2 changed files with 5 additions and 2 deletions

View File

@ -288,6 +288,8 @@ function add_conto(id) {
} }
function load_movimenti(selector, id_conto) { function load_movimenti(selector, id_conto) {
$("#main_loading").show();
$.ajax({ $.ajax({
url: "'.$structure->fileurl('dettagli_conto.php').'", url: "'.$structure->fileurl('dettagli_conto.php').'",
type: "get", type: "get",
@ -297,8 +299,9 @@ function load_movimenti(selector, id_conto) {
}, },
success: function(data){ success: function(data){
$("#" + selector).html(data); $("#" + selector).html(data);
$("#" + selector).slideToggle(); $("#" + selector).slideToggle();
$("#main_loading").fadeOut();
} }
}); });
} }

View File

@ -42,7 +42,7 @@ class FileManager implements ManagerInterface
<div class="panel-heading"> <div class="panel-heading">
<h3 class="panel-title">'.tr('Allegati').'</h3> <h3 class="panel-title">'.tr('Allegati').'</h3>
</div> </div>
<div class="panel-body"><div id="loading_'.$attachment_id.'" class="text-center hide" style="position:relative;top:100px;z-index:2;opacity:0.5;" ><i class="fa fa-refresh fa-spin fa-3x fa-fw"></i><span class="sr-only">'.tr('Caricamento...').'</span></div>'; <div class="panel-body"><div id="loading_'.$attachment_id.'" class="text-center hide" style="position:relative;top:100px;z-index:2;opacity:0.5;"><i class="fa fa-refresh fa-spin fa-3x fa-fw"></i><span class="sr-only">'.tr('Caricamento...').'</span></div>';
} }
$count = 0; $count = 0;