Fix selected scheduled definition not getting saved

This commit is contained in:
Nathan Gray 2013-01-29 17:47:42 +00:00
parent e77b9c983f
commit 7b668c306d

View File

@ -258,6 +258,8 @@
} else { } else {
$response->addScript("xajax_doXMLHTTP('importexport.importexport_schedule_ui.ajax_get_definitions', '$appname', document.getElementById('exec[plugin]').value);"); $response->addScript("xajax_doXMLHTTP('importexport.importexport_schedule_ui.ajax_get_definitions', '$appname', document.getElementById('exec[plugin]').value);");
} }
// Trigger chosen
$response->addScript("\$j(document.getElementById('exec[plugin]')).trigger('liszt:updated');");
return $response->getXML(); return $response->getXML();
} }
@ -284,6 +286,8 @@
} else { } else {
$response->addScript("document.getElementById('exec[definition]').value = ''"); $response->addScript("document.getElementById('exec[definition]').value = ''");
} }
// Trigger chosen
$response->addScript("\$j(document.getElementById('exec[definition]')).trigger('liszt:updated');");
return $response->getXML(); return $response->getXML();
} }