Fix: correction sur le rechargement du gamutable à la validation des
crayons sur les 2 tableaux
This commit is contained in:
parent
3405333a4d
commit
4608e25fdf
3 changed files with 15 additions and 19 deletions
|
@ -52,11 +52,11 @@ function gamutable_crayons_vue_affichage_final($flux){
|
|||
$objet = $flux['args']['type'];
|
||||
if (
|
||||
$id = intval($id)
|
||||
and (!empty($GLOBALS['gamutable_rechargerJson_all']) and !in_array($objet, $GLOBALS['gamutable_rechargerJson_all']))
|
||||
and !in_array($objet, $GLOBALS['gamutable_rechargerJson_all'] ?? [])
|
||||
) {
|
||||
$flux['data'] .= ' <script type="text/javascript">if ( typeof app === "function") { app.rechargerJson('.$id.');} </script>';
|
||||
$flux['data'] .= ' <script type="text/javascript">if ( typeof app_deux === "object") { app_deux.rechargerJson('.$id.');}if ( typeof app === "object") { app.rechargerJson('.$id.');} </script>';
|
||||
} else {
|
||||
$flux['data'] .= ' <script type="text/javascript">if ( typeof app === "function") { app.rechargerJson();} </script>';
|
||||
$flux['data'] .= $objet . ' <script type="text/javascript">if ( typeof app_deux === "object") { app_deux.rechargerJson();}if ( typeof app === "object") { app.rechargerJson();} </script>';
|
||||
}
|
||||
|
||||
return $flux;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue