ajout d'une fonction : gamutable_recharger_tableau qui permet de

recharger le gamutable sans fermer la modalbox
This commit is contained in:
Christophe 2022-04-13 22:14:51 +02:00
parent ba9f23324d
commit 7609d09e3b
2 changed files with 22 additions and 1 deletions

View file

@ -35,3 +35,24 @@ function gamutable_fermer_modalbox($id_objet = 9999999999){
EOJS; EOJS;
return $html; return $html;
} }
function gamutable_recharger_tableau($id_objet = 9999999999){
$html = <<<EOJS
<script type="text/javascript">
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;
</script>
EOJS;
return $html;
}

View file

@ -1,7 +1,7 @@
<paquet <paquet
prefix="gamutable" prefix="gamutable"
categorie="outil" categorie="outil"
version="3.3.2" version="3.4.0"
etat="dev" etat="dev"
compatibilite="[3.2.0-dev;4.1.*]" compatibilite="[3.2.0-dev;4.1.*]"
logo="prive/themes/spip/images/gamutable-xx.svg" logo="prive/themes/spip/images/gamutable-xx.svg"