MINOR Fixed variable declaration in CMSMain.AddForm.js

This commit is contained in:
Ingo Schommer 2012-01-22 11:58:24 +01:00
parent a570e2f2a0
commit 2814aeb249

View File

@ -45,7 +45,7 @@
id = this.find('#ParentID .TreeDropdownField').getValue(),
newClassName = metadata ? metadata.ClassName : null,
hintKey = newClassName ? newClassName : 'Root',
hint = (typeof hints[hintKey] != 'undefined') ? hints[key] : null;
hint = (typeof hints[hintKey] != 'undefined') ? hints[hintKey] : null;
var disallowedChildren = (hint && typeof hint.disallowedChildren != 'undefined') ? hint.disallowedChildren : [],
defaultChildClass = (hint && typeof hint.defaultChild != 'undefined') ? hint.defaultChild : null;