From 9977bcd6954b0172e99eb03b7f4f05d7aa3b8eac Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Sun, 24 Jul 2016 00:03:02 +0200 Subject: [PATCH] =?UTF-8?q?Suppression=20des=20retours=20vers=20la=20cible?= =?UTF-8?q?=20lors=20de=20'cr=C3=A9ation'/'modification'=20pour=20les=20pa?= =?UTF-8?q?ges=20'users',=20'machines',=20'groups'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/action-script.js | 2 +- manager/repo/machine.php | 5 ++-- view/js/groups-min.js | 13 +++++----- view/js/groups.js | 55 ++++++++++++++++++++++++++++++++-------- view/js/machines-min.js | 16 ++++++------ view/js/machines.js | 48 +++++++++++++++++++++++++---------- view/js/users-min.js | 9 ++++--- view/js/users.js | 50 ++++++++++++++++++++++++++++-------- 8 files changed, 143 insertions(+), 55 deletions(-) diff --git a/js/action-script.js b/js/action-script.js index 486cb3b..d1d0342 100755 --- a/js/action-script.js +++ b/js/action-script.js @@ -1,4 +1,4 @@ -// TODO: Attendre que API soit chargée, sinon erreur, le CONTAINER prend comme contenu la dépendance JS +// TODO: Attendre que API soit chargée, sinon erreur: le CONTAINER prend comme contenu la dépendance JS DOM = { WRAPPER: $('WRAPPER'), HEADER: $('HEADER'), diff --git a/manager/repo/machine.php b/manager/repo/machine.php index 2c970e8..67d1bcc 100755 --- a/manager/repo/machine.php +++ b/manager/repo/machine.php @@ -148,12 +148,13 @@ =========================================================*/ $deleted = Table::get('machine') ->whereId($id_machine) - ->whereIdWarehouse($id_warehouse); + ->whereIdWarehouse($id_warehouse) + ->delete(); /* [2] On verifie que la machine est bien supprimée =========================================================*/ - return $delete->delete(); + return $deleted; } diff --git a/view/js/groups-min.js b/view/js/groups-min.js index da1b9d6..722c450 100644 --- a/view/js/groups-min.js +++ b/view/js/groups-min.js @@ -6,20 +6,21 @@ if(null!=section.view.element){1 article.inline-box[id]");for(c=0;c article.inline-box[id]");for(c=0;c article.inline-box[id]");for(b=0;b