index 4604eecbe2bed502cf9de24c2976224f055e1bb4..a1d935eb3627aee32bede308f3b10e7ac369f7e9 100644 (file)
$this->registerAction("saveSnapshot","saveSnapshot");
$this->registerAction("restoreSnapshot","restoreSnapshot");
$this->registerAction("cancelSnapshot","closeDialogs");
+
+ $this->registerAction("config-filter","editFilter");
}
/*! \brief Execute this plugin
$vars = array('/^act$/','/^listing/','/^PID$/','/^FILTER_PID$/');
session::set('LOCK_VARS_TO_USE',$vars);
+ pathNavigator::registerPlugin($this);
+
/* Display the copy & paste dialog, if it is currently open */
$ret = $this->copyPasteHandler("",array());
if($ret){
$this->snapHandler->setSnapshotBases($bases);
}
- // Dummy filter editor
- $dummy = "<button type='submit' name='editFilter'>!!</button>";
- $this->registerAction("editFilter", "editFilter");
-
// Display list
- return($dummy.$this->renderList());
+ return($this->renderList());
}
function editFilter()
{
- $headpage = $this->getHeadpage();
- $this->dialogObject = new userFilter($this->config,$headpage->categories);
+ $this->dialogObject = new userFilter($this->config,$this->getHeadpage());
}
function renderList()
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";