From ee4f38406682dd3791f1a2dd7ddac783f996b48e Mon Sep 17 00:00:00 2001 From: Thomas Zilio Date: Mon, 15 Jul 2019 09:34:14 +0200 Subject: [PATCH] Animazione di caricamento piano dei conti --- modules/partitario/edit.php | 5 ++++- src/HTMLBuilder/Manager/FileManager.php | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/partitario/edit.php b/modules/partitario/edit.php index ee837ad5f..3457d14ed 100644 --- a/modules/partitario/edit.php +++ b/modules/partitario/edit.php @@ -288,6 +288,8 @@ function add_conto(id) { } function load_movimenti(selector, id_conto) { + $("#main_loading").show(); + $.ajax({ url: "'.$structure->fileurl('dettagli_conto.php').'", type: "get", @@ -297,8 +299,9 @@ function load_movimenti(selector, id_conto) { }, success: function(data){ $("#" + selector).html(data); - $("#" + selector).slideToggle(); + + $("#main_loading").fadeOut(); } }); } diff --git a/src/HTMLBuilder/Manager/FileManager.php b/src/HTMLBuilder/Manager/FileManager.php index d0f8bd267..be2f50dfb 100644 --- a/src/HTMLBuilder/Manager/FileManager.php +++ b/src/HTMLBuilder/Manager/FileManager.php @@ -42,7 +42,7 @@ class FileManager implements ManagerInterface

'.tr('Allegati').'

-
'.tr('Caricamento...').'
'; +
'.tr('Caricamento...').'
'; } $count = 0;