Force an init of the fields form in the ThingyRecord when the Edit form is loaded.

This commit is contained in:
Colin Kuskie 2009-07-08 04:59:55 +00:00
parent b7358fbceb
commit c96b3d6bc0
2 changed files with 6 additions and 0 deletions

View file

@ -9,6 +9,7 @@
- fixed #10612: strange i18n, with regard to label
- fixed #9935: German characters in Collaboration System
- fixed #10610: editing a page and editing goes away
- fixed #10518: ThingyRecord edit page - Fields to Edit not filled in
7.7.13
- fixed #10574: Creating Calendar Entry

View file

@ -207,6 +207,11 @@ sub getEditForm {
$self->session->url->extras('yui-webgui/build/thingyRecord/thingyRecord.js'),
{ type => "text/javascript" },
);
$self->session->style->setRawHeadTags(<<EOSCRIPT);
<script type="text/javascript">
YAHOO.util.Event.onDOMReady( function () { var thingForm = YAHOO.util.Dom.get('thingId_formId'); WebGUI.ThingyRecord.getThingFields(thingForm.options[thingForm.selectedIndex].value,'thingFields_formId')} );
</script>
EOSCRIPT
return $self->SUPER::getEditForm;
}