forked from extern/egroupware
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("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();
|
return $response->getXML();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -222,7 +226,11 @@
|
|||||||
$response->addScript("selectbox_add_option('exec[definition]','$title', '$value',false);");
|
$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();
|
return $response->getXML();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user