revert changes undone in #2224

This commit is contained in:
j 2012-06-27 10:20:11 +02:00
parent e38a09cd42
commit 9bb6b7bcb9
2 changed files with 5 additions and 3 deletions

View file

@ -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();

View file

@ -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',