Ensure behaviour is applied correctly when a field is added to a UserDefinedForm (merged from 2.1.1 branch, r43604)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@44198 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Andrew O'Neil 2007-11-04 21:32:09 +00:00
parent 1509d413e5
commit 14b91fe77a

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?