diff --git a/source/Ox.UI/js/Form/FormPanel.js b/source/Ox.UI/js/Form/FormPanel.js index 034c4abf..89024239 100644 --- a/source/Ox.UI/js/Form/FormPanel.js +++ b/source/Ox.UI/js/Form/FormPanel.js @@ -121,8 +121,10 @@ Ox.FormPanel = function(options, self) { .appendTo(self.$section); }); - self.$forms.forEach(function($form, i) { - self.$list.value(self.options.form[i].id, 'valid', $form.valid()); + self.$list.bindEvent('load', function() { + self.$forms.forEach(function($form, i) { + self.$list.value(self.options.form[i].id, 'valid', $form.valid()); + }); }); self.$sections[0].show(); diff --git a/source/Ox.UI/js/List/TreeList.js b/source/Ox.UI/js/List/TreeList.js index 94e381f7..3035e8cc 100644 --- a/source/Ox.UI/js/List/TreeList.js +++ b/source/Ox.UI/js/List/TreeList.js @@ -62,7 +62,7 @@ Ox.TreeList = function(options, self) { max: self.options.max, min: self.options.min, unique: 'id' - }, Ox.clone(self)) + }, Ox.extend(Ox.clone(self), {updateCallbacks: []})) // pass event handler .addClass('OxTableList OxTreeList') .css({ width: self.options.width + 'px',