From 36ac27179126fea21ee46bdc87cb6e1136459c4c Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Wed, 20 Jul 2016 19:57:05 +0200 Subject: [PATCH] =?UTF-8?q?Page=20'machines/view',=20'machines/remove',=20?= =?UTF-8?q?'machines/edit'=20DONE=20+=20les=20repos/modules=20utiles=20?= =?UTF-8?q?=C3=A0=20leur=20fonctionnement=20DONE=20+=20les=20liens=20entre?= =?UTF-8?q?=20les=20pages=20(except=C3=A9=20'machine/groups'=20et=20le=20l?= =?UTF-8?q?iens=20vers=20la=20page=20'groups/...')=20DONE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manager/module/machineDefault.php | 30 +----------------------------- view/js/groups-min.js | 5 ++--- view/js/groups.js | 2 -- view/js/machines-min.js | 6 +++--- view/js/machines.js | 11 +++++++---- 5 files changed, 13 insertions(+), 41 deletions(-) diff --git a/manager/module/machineDefault.php b/manager/module/machineDefault.php index c1e80d4..1708fd0 100755 --- a/manager/module/machineDefault.php +++ b/manager/module/machineDefault.php @@ -316,36 +316,8 @@ ]); $deleted_machine = $del_machine->answer(); - if( !$deleted_machine ) - return [ 'status' => false ]; - - /* [2] On récupère le groupe personnel - =========================================================*/ - $get_personal_cluster = new Repo('cluster/getPersonal', [ - $id_warehouse, - $id_machine, - clusterRepo::MACHINE_CLASS - ]); - - $personal_cluster = $get_personal_cluster->answer(); - - // si erreur - if( $personal_cluster === false ) - return [ 'status' => false ]; - - - /* [3] On supprime le groupe personnel - =========================================================*/ - $del_cluster = new Repo('cluster/delete', [ - $id_warehouse, - $personal_cluster['id_cluster'] - ]); - - $deleted = $del_cluster->answer(); - - - return [ 'status' => $deleted ]; + return [ 'status' => $deleted_machine ]; } diff --git a/view/js/groups-min.js b/view/js/groups-min.js index 416fe8a..b915f08 100644 --- a/view/js/groups-min.js +++ b/view/js/groups-min.js @@ -3,9 +3,8 @@ edit:{text:'#CONTAINER > section[data-sublink="edit"] ',element:document.querySe element:document.querySelector('#CONTAINER > section[data-sublink="permissions"]')}}; if(null!=section.view.element){1 article.inline-box[id]");for(c=0;c section[data-sublink="view"] ',element:doc edit:{text:'#CONTAINER > section[data-sublink="edit"] ',element:document.querySelector('#CONTAINER > section[data-sublink="edit"]')}}; if(null!=section.view.element){1 article.inline-box[id]");for(c=0;c