Ensure behaviour is applied correctly when a field is added to a UserDefinedForm

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.1.1@43602 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Andrew O'Neil 2007-10-19 01:00:08 +00:00 committed by Sam Minnee
parent b9492c67c5
commit 29e8cdae7a

View File

@ -534,8 +534,9 @@ Behaviour.register(
$('Fields_fields').appendChild(newField);
// Behaviour.debug();
if( newField ) {
if(newField) {
Behaviour.apply(newField,true);
FieldEditor.applyTo('div.FieldEditor');
}
// do we want to make sorting explicit?