From eb66ddd3e3652d1b7d8207f27b30e011066229e5 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Tue, 19 Jul 2016 11:31:37 +0200 Subject: [PATCH] minmod --- manager/module/machineDefault.php | 6 +++--- test/client/interface.php | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/manager/module/machineDefault.php b/manager/module/machineDefault.php index 4f8191d..e1044e5 100755 --- a/manager/module/machineDefault.php +++ b/manager/module/machineDefault.php @@ -418,9 +418,9 @@ /* [3] Retorne les données =========================================================*/ return [ - 'actions' => $actions, - 'globalStates' => $globalStates, - 'chips' => $chips + 'actions' => $actions, + 'states' => $globalStates, + 'chips' => $chips ]; } diff --git a/test/client/interface.php b/test/client/interface.php index 6675582..3132457 100644 --- a/test/client/interface.php +++ b/test/client/interface.php @@ -237,6 +237,7 @@ var lsi = new localStorageInterface(); lsi.createDataset('STATES.CNF' ); lsi.createDataset('ACTIONS.CNF'); + lsi.createDataset('CHIPS.CNF'); lsi.createDataset('USERS.CNF' ); lsi.createDataset('SERVER.CNF' ); lsi.createDataset('HISTORY.LOG'); @@ -248,6 +249,7 @@ api.send({path: 'machineDefault/init'}, function(response){ lsi.import('ACTIONS.CNF', response.actions); lsi.import('STATES.CNF', response.states); + lsi.import('CHIPS.CNF', response.chips); }); /* (5) On initialise la carte + les puces */