From 7609d09e3bcb1ada998151e140f00bfb24d5b1a4 Mon Sep 17 00:00:00 2001 From: tofulm Date: Wed, 13 Apr 2022 22:14:51 +0200 Subject: [PATCH] ajout d'une fonction : gamutable_recharger_tableau qui permet de recharger le gamutable sans fermer la modalbox --- gamutable_fonctions.php | 21 +++++++++++++++++++++ paquet.xml | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/gamutable_fonctions.php b/gamutable_fonctions.php index e50a9be..1091d8e 100644 --- a/gamutable_fonctions.php +++ b/gamutable_fonctions.php @@ -35,3 +35,24 @@ function gamutable_fermer_modalbox($id_objet = 9999999999){ EOJS; return $html; } + +function gamutable_recharger_tableau($id_objet = 9999999999){ + $html = << + id = "$id_objet"; + id = parseInt(id); + if (id > 0 && id < 9999999999) { + if (typeof app !== 'undefined') { + app.rechargerJson(id); + } + } + if (id === 9999999999) { + if (typeof app !== 'undefined') { + app.rechargerJson(); + } + } + delete id; + +EOJS; + return $html; +} diff --git a/paquet.xml b/paquet.xml index 4dd94e8..9637d19 100644 --- a/paquet.xml +++ b/paquet.xml @@ -1,7 +1,7 @@