mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 01:13:25 +01:00
Filter definitions by selected application / plugin
This commit is contained in:
parent
8d6c063ae2
commit
9990fe45d6
@ -276,6 +276,7 @@
|
||||
}
|
||||
}
|
||||
if(count($options['plugin']) == 1) {
|
||||
$this->ajax_get_definitions($appname, $value, $response);
|
||||
$response->assign('exec[plugin]','value',$value);
|
||||
} else {
|
||||
$response->addScript("xajax_doXMLHTTP('importexport.importexport_schedule_ui.ajax_get_definitions', '$appname', document.getElementById('exec[plugin]').value);");
|
||||
@ -287,9 +288,13 @@
|
||||
/**
|
||||
* Get definitions via ajax
|
||||
*/
|
||||
public function ajax_get_definitions($appname, $plugin) {
|
||||
public function ajax_get_definitions($appname, $plugin, &$response = null) {
|
||||
$options = self::get_select_options(array('appname'=>$appname, 'plugin'=>$plugin));
|
||||
$response = new xajaxResponse();
|
||||
if($response) {
|
||||
$return = false;
|
||||
} else {
|
||||
$response = new xajaxResponse();
|
||||
}
|
||||
$response->addScript("clear_options('exec[definition]');");
|
||||
$response->addScript("selectbox_add_option('exec[definition]','".lang('Select...')."', '',false);");
|
||||
if(is_array($options['definition'])) {
|
||||
|
Loading…
Reference in New Issue
Block a user