correction si on utilise les crayons sans gamutable

This commit is contained in:
Christophe 2022-05-23 17:16:12 +02:00
parent 0a6d276acc
commit 92ea295189

View file

@ -54,9 +54,10 @@ function gamutable_crayons_vue_affichage_final($flux){
$id = intval($id) $id = intval($id)
and (!empty($GLOBALS['gamutable_rechargerJson_all']) and !in_array($objet, $GLOBALS['gamutable_rechargerJson_all'])) 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">if ( typeof app === "function") { app.rechargerJson('.$id.');} </script>';
} else { } else {
$flux['data'] .= ' <script type="text/javascript"> app.rechargerJson(); </script>'; $flux['data'] .= ' <script type="text/javascript">if ( typeof app === "function") { app.rechargerJson();} </script>';
} }
return $flux; return $flux;
} }