From 45ec3917ffa0943bec47d168995265edc0703961 Mon Sep 17 00:00:00 2001 From: Luca Date: Wed, 16 May 2018 14:55:19 +0200 Subject: [PATCH] Spostato il caricamento della lista allegati ajax all'interno del file ajax.php --- ajax.php | 11 +++++++++++ modules/contratti/edit.php | 2 +- src/HTMLBuilder/Manager/FileManager.php | 8 +------- 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/ajax.php b/ajax.php index 0ea57078a..c200b313d 100644 --- a/ajax.php +++ b/ajax.php @@ -46,4 +46,15 @@ switch (get('op')) { } break; + + case 'list_attachments': + + $id_module = get('id_module'); + $id_record = get('id_record'); + $id_plugin = get('id_plugin'); + + echo '{( "name": "filelist_and_upload", "id_module": "'.$id_module.'", "id_record": "'.$id_record.'", "id_plugin": "'.$id_plugin.'", "ajax": "true" )}'; + + break; + } diff --git a/modules/contratti/edit.php b/modules/contratti/edit.php index 1a4938a1b..532b63cb7 100644 --- a/modules/contratti/edit.php +++ b/modules/contratti/edit.php @@ -418,7 +418,7 @@ if (!empty($fatture)) { ?> -{( "name": "filelist_and_upload", "id_module": "", "id_record": "" )} +{( "name": "filelist_and_upload", "id_module": "", "id_record": "", "ajax":"true" )} diff --git a/src/HTMLBuilder/Manager/FileManager.php b/src/HTMLBuilder/Manager/FileManager.php index 086a7081a..1cfbbe380 100644 --- a/src/HTMLBuilder/Manager/FileManager.php +++ b/src/HTMLBuilder/Manager/FileManager.php @@ -1,12 +1,6 @@