ajout d'une fonction : gamutable_recharger_tableau qui permet de
recharger le gamutable sans fermer la modalbox
This commit is contained in:
parent
ba9f23324d
commit
7609d09e3b
2 changed files with 22 additions and 1 deletions
|
@ -35,3 +35,24 @@ function gamutable_fermer_modalbox($id_objet = 9999999999){
|
|||
EOJS;
|
||||
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;
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<paquet
|
||||
prefix="gamutable"
|
||||
categorie="outil"
|
||||
version="3.3.2"
|
||||
version="3.4.0"
|
||||
etat="dev"
|
||||
compatibilite="[3.2.0-dev;4.1.*]"
|
||||
logo="prive/themes/spip/images/gamutable-xx.svg"
|
||||
|
|
Loading…
Add table
Reference in a new issue