On ajoute le pipeline qui permet de recharger automatiquement la ligne si on utilise les crayons
This commit is contained in:
parent
e302a18a7b
commit
3e3f7e2f54
2 changed files with 17 additions and 1 deletions
|
@ -39,3 +39,18 @@ function gamutable_affichage_final($flux) {
|
|||
}
|
||||
return $flux;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* injection du reload de vuejs pour les crayons de l'objet souscription
|
||||
*
|
||||
*/
|
||||
function gamutable_crayons_vue_affichage_final($flux){
|
||||
$id = $flux['args']['id'];
|
||||
if ($id = intval($id)) {
|
||||
$flux['data'] .= ' <script type="text/javascript"> app.rechargerJson('.$id.'); </script>';
|
||||
} else {
|
||||
$flux['data'] .= ' <script type="text/javascript"> app.rechargerJson(); </script>';
|
||||
}
|
||||
return $flux;
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<paquet
|
||||
prefix="gamutable"
|
||||
categorie="outil"
|
||||
version="3.4.1"
|
||||
version="3.4.2"
|
||||
etat="dev"
|
||||
compatibilite="[3.2.0-dev;4.1.*]"
|
||||
logo="prive/themes/spip/images/gamutable-xx.svg"
|
||||
|
@ -18,6 +18,7 @@
|
|||
|
||||
<pipeline nom="formulaire_admin" inclure="gamutable_pipelines.php"/>
|
||||
<pipeline nom="affichage_final" inclure="gamutable_pipelines.php" />
|
||||
<pipeline nom="crayons_vue_affichage_final" inclure="gamutable_pipelines.php" />
|
||||
|
||||
|
||||
</paquet>
|
||||
|
|
Loading…
Add table
Reference in a new issue