From 319592def57490e70cbf3d2a8ac2acfb4adcaa20 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 9 Mar 2010 12:18:23 +0000 Subject: [PATCH] Added dummy filter edit button into management git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@16361 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_management.inc | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/gosa-core/include/class_management.inc b/gosa-core/include/class_management.inc index 60eb713e8..aec1431f5 100644 --- a/gosa-core/include/class_management.inc +++ b/gosa-core/include/class_management.inc @@ -177,11 +177,21 @@ class management $this->snapHandler->setSnapshotBases($bases); } - + + // Dummy filter editor + $dummy = ""; + $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"; -- 2.30.2