index 8f9827a2f2c01019952d3681c90fdb8f143dacb3..6bdd603ca37cd0519a890868d897bbb648e12251 100644 (file)
$this->registerAction("saveSnapshot","saveSnapshot");
$this->registerAction("restoreSnapshot","restoreSnapshot");
$this->registerAction("cancelSnapshot","closeDialogs");
+
+ $this->registerAction("config-filter","editFilter");
}
/*! \brief Execute this plugin
$this->filter->update();
session::global_set(get_class($this)."_filter", $this->filter);
session::set('autocomplete', $this->filter);
- if (!$this->filter->isValid()){
- msg_dialog::display(_("Filter error"), _("The filter is incomplete!"), ERROR_DIALOG);
- }
}
// Handle actions (POSTs and GETs)
$this->snapHandler->setSnapshotBases($bases);
}
-
+
// Display list
return($this->renderList());
}
-
+
+ function editFilter()
+ {
+ $headpage = $this->getHeadpage();
+ $this->dialogObject = new userFilter($this->config,$headpage->categories);
+ }
+
function renderList()
{
$this->headpage->update();
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['saveFilter'])) $action['action'] = "save";
+ if(isset($_POST['cancelFilter'])) $action['action'] = "cancel";
// Detect Snapshot actions
if(isset($_POST['CreateSnapshot'])) $action['action'] = "saveSnapshot";