From: hickert Date: Tue, 9 Mar 2010 12:18:23 +0000 (+0000) Subject: Added dummy filter edit button into management X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=319592def57490e70cbf3d2a8ac2acfb4adcaa20;p=gosa.git Added dummy filter edit button into management git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@16361 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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";