Code

Updated Device item editing
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 29 Sep 2010 15:42:02 +0000 (15:42 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 29 Sep 2010 15:42:02 +0000 (15:42 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19860 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/admin/systems/goto/Config/class_DeviceConfig.inc

index cc38bd09000e7cc8b69b279b3c63a11d25248ade..0bc9d755b243d80b3a6bf5c1167da8df60747f40 100644 (file)
@@ -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