From 189288aec4d52f637f249773820d12270a625c66 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 29 Sep 2010 15:42:02 +0000 Subject: [PATCH] Updated Device item editing git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19860 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../goto/Config/class_DeviceConfig.inc | 40 +++++++++---------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/gosa-plugins/goto/admin/systems/goto/Config/class_DeviceConfig.inc b/gosa-plugins/goto/admin/systems/goto/Config/class_DeviceConfig.inc index cc38bd090..0bc9d755b 100644 --- a/gosa-plugins/goto/admin/systems/goto/Config/class_DeviceConfig.inc +++ b/gosa-plugins/goto/admin/systems/goto/Config/class_DeviceConfig.inc @@ -107,6 +107,26 @@ class DeviceConfig extends management } + function cancelItemEdit() + { + $this->closeDialogs(); + $this->dialog = FALSE; + } + + + function saveItemChanges() + { + // Save eventually changed values + if($this->currentItem){ + foreach($this->TemplateEngine->getWidgets() as $widget){ + $this->currentItem['values'][$widget->getName()] = $widget->getValue(); + } + } + $this->closeDialogs(); + $this->dialog = FALSE; + } + + function openEntry($action="",$target=array(),$all=array(), $altTabClass ="", $altTabType = "", $altAclCategory="") { $this->base = $this->currentItemValues[$target[0]]['base']; @@ -197,13 +217,6 @@ class DeviceConfig extends management } - function cancelItemEdit() - { - $this->closeDialogs(); - $this->dialog = FALSE; - } - - /*! \brief Add a new child-item to the currently selected one. * * @param String type The 'type' of the new object, eg. 'KickstartTemplate' @@ -240,19 +253,6 @@ class DeviceConfig extends management $this->currentItemValues[$name] = $new; $current['children'][$name] = &$this->currentItemValues[$name]; } - - - function saveItemChanges() - { - - // Save eventually changed values - if($this->currentItem){ - foreach($this->TemplateEngine->getWidgets() as $widget){ - $this->currentItem['values'][$widget->getName()] = $widget->getValue(); - } - } - $this->closeDialogs(); - } /*! \brief Selects an item as active and takes care -- 2.30.2