mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +01:00
If there's only one option for plugin or definition, select it
This commit is contained in:
parent
cbcc4c6c49
commit
af7ad5bec1
@ -205,7 +205,11 @@
|
||||
$response->addScript("selectbox_add_option('exec[plugin]','$title', '$value',false);");
|
||||
}
|
||||
}
|
||||
$response->addScript("xajax_doXMLHTTP('importexport.importexport_schedule_ui.ajax_get_definitions', '$appname', document.getElementById('exec[plugin]').value);");
|
||||
if(count($options['plugin']) == 1) {
|
||||
$response->assign('exec[plugin]','value',$value);
|
||||
} else {
|
||||
$response->addScript("xajax_doXMLHTTP('importexport.importexport_schedule_ui.ajax_get_definitions', '$appname', document.getElementById('exec[plugin]').value);");
|
||||
}
|
||||
return $response->getXML();
|
||||
}
|
||||
|
||||
@ -222,7 +226,11 @@
|
||||
$response->addScript("selectbox_add_option('exec[definition]','$title', '$value',false);");
|
||||
}
|
||||
}
|
||||
$response->addScript("document.getElementById('exec[definition]').value = ''");
|
||||
if(count($options['definition']) == 1) {
|
||||
$response->assign('exec[definition]','value',$value);
|
||||
} else {
|
||||
$response->addScript("document.getElementById('exec[definition]').value = ''");
|
||||
}
|
||||
return $response->getXML();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user