From 45a2c2fd331b0b08007c58a046f4c4a6226f83d0 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Mon, 18 Feb 2013 17:14:08 +0000 Subject: [PATCH] --- inc/ws/Controlleur/class.ws.ajax.php | 10 +++---- inc/ws/Controlleur/class.ws.url.php | 24 +++++++++------- inc/ws/DAO/class.ws.dao.book.php | 4 +-- inc/ws/DAO/class.ws.dao.document.php | 4 +-- inc/ws/Metier/class.ws.book.parametres.php | 7 +++-- js/ws.js | 32 ++++++++++++++++++---- style/ws/style.css | 21 +++++++------- 7 files changed, 61 insertions(+), 41 deletions(-) diff --git a/inc/ws/Controlleur/class.ws.ajax.php b/inc/ws/Controlleur/class.ws.ajax.php index f99138abc..39713b536 100644 --- a/inc/ws/Controlleur/class.ws.ajax.php +++ b/inc/ws/Controlleur/class.ws.ajax.php @@ -211,7 +211,7 @@ class wsAjax extends cubeAjax { $datas = array(); foreach ($_POST['group'] as $gid => $group) { - if ($gid && $gid == '_new') { + if ($gid && $gid == 'new_') { continue; } @@ -223,7 +223,7 @@ class wsAjax extends cubeAjax { } $group['publications'] = $publications; } else { - $group['publications'] = array($dao->_emptyPublication); + $group['publications'] = array($dao->_emptyPublication()); } $datas[] = $group; @@ -231,13 +231,11 @@ class wsAjax extends cubeAjax { if (count($datas) == 0) { $datas = $dao->_emptyCollection(); } - - fb($datas); - + $save['datas'] = $datas; $dao->sauve($save); - //$x->addReload(); + $x->addReload(); } public static function changeBookProprietaire($args, &$x) { diff --git a/inc/ws/Controlleur/class.ws.url.php b/inc/ws/Controlleur/class.ws.url.php index 231f6cc78..78c057d24 100644 --- a/inc/ws/Controlleur/class.ws.url.php +++ b/inc/ws/Controlleur/class.ws.url.php @@ -252,7 +252,7 @@ class wsUrl { if ($gid && $gid == 'new_') { $class.=' empty'; } - $res.='
  • '; + $res.='
  • '; $res.='
    '; $res.=''; $g = 'group[' . $gid . ']'; @@ -261,17 +261,23 @@ class wsUrl { $res.='
    '; $res.='