on peut bloquer le rechargement selectif par id en ajoutant le nom de l'objet
dans la global $GLOBALS['gamutable_rechargerJson_all']
This commit is contained in:
parent
1986977f15
commit
b7fe04b607
1 changed files with 7 additions and 1 deletions
|
@ -43,11 +43,17 @@ function gamutable_affichage_final($flux) {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* injection du reload de vuejs pour les crayons de l'objet souscription
|
* injection du reload de vuejs pour les crayons de l'objet souscription
|
||||||
|
* on peut bloquer le rechargement selectif par id en ajoutant le nom de l'objet
|
||||||
|
* dans la global $GLOBALS['gamutable_rechargerJson_all']
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
function gamutable_crayons_vue_affichage_final($flux){
|
function gamutable_crayons_vue_affichage_final($flux){
|
||||||
$id = $flux['args']['id'];
|
$id = $flux['args']['id'];
|
||||||
if ($id = intval($id)) {
|
$objet = $flux['args']['type'];
|
||||||
|
if (
|
||||||
|
$id = intval($id)
|
||||||
|
and (!empty($GLOBALS['gamutable_rechargerJson_all']) and !in_array($objet, $GLOBALS['gamutable_rechargerJson_all']))
|
||||||
|
) {
|
||||||
$flux['data'] .= ' <script type="text/javascript"> app.rechargerJson('.$id.'); </script>';
|
$flux['data'] .= ' <script type="text/javascript"> app.rechargerJson('.$id.'); </script>';
|
||||||
} else {
|
} else {
|
||||||
$flux['data'] .= ' <script type="text/javascript"> app.rechargerJson(); </script>';
|
$flux['data'] .= ' <script type="text/javascript"> app.rechargerJson(); </script>';
|
||||||
|
|
Loading…
Add table
Reference in a new issue