Code

Added dummy filter edit button into management
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 9 Mar 2010 12:18:23 +0000 (12:18 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 9 Mar 2010 12:18:23 +0000 (12:18 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@16361 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_management.inc

index 60eb713e84fb19439e8a95c32765c2f9b261cd9a..aec1431f5efcb9cd5049287b743f9c22b8769bec 100644 (file)
@@ -177,11 +177,21 @@ class management
 
       $this->snapHandler->setSnapshotBases($bases);
     }
-    
+  
+    // Dummy filter editor 
+    $dummy = "<button type='submit' name='editFilter'>!!</button>";
+    $this->registerAction("editFilter", "editFilter");
     // Display list
-    return($this->renderList());
+    return($dummy.$this->renderList());
   }
-  
+  function editFilter()
+  {
+    $headpage = $this->getHeadpage();
+    $this->dialogObject = new filterEditor($this->config,$headpage->categories);
+  }
   function renderList()
   {
     $this->headpage->update();
@@ -365,6 +375,9 @@ class management
     if(isset($_POST['edit_cancel'])) $action['action'] = "cancel";    
     if(isset($_POST['delete_confirmed'])) $action['action'] = "removeConfirmed";   
     if(isset($_POST['delete_cancel'])) $action['action'] = "cancelDelete";   
+    if(isset($_POST['editFilter'])) $action['action'] = "editFilter";   
+    if(isset($_POST['saveFilter'])) $action['action'] = "save";   
+    if(isset($_POST['cancelFilter'])) $action['action'] = "cancel";   
 
     // Detect Snapshot actions
     if(isset($_POST['CreateSnapshot'])) $action['action'] = "saveSnapshot";