only update list values once list has loaded

This commit is contained in:
j 2012-06-26 16:26:32 +00:00
parent 244591d57e
commit 2efbc53b33

View file

@ -120,10 +120,11 @@ Ox.FormPanel = function(options, self) {
.hide() .hide()
.appendTo(self.$section); .appendTo(self.$section);
}); });
self.$list.bindEvent('load', function() {
self.$forms.forEach(function($form, i) { self.$forms.forEach(function($form, i) {
self.$list.value(self.options.form[i].id, 'valid', $form.valid()); self.$list.value(self.options.form[i].id, 'valid', $form.valid());
}); });
});
self.$sections[0].show(); self.$sections[0].show();