Ox.FormPanel: add missing select event

This commit is contained in:
rolux 2012-07-09 15:59:50 +02:00
parent cfa16327a5
commit c0837fb4ff

View file

@ -5,8 +5,9 @@ Ox.FormPanel <f> Form Panel
options <o> Options
self <o> Shared private variable
([options[, self]]) -> <o:Ox.Element> Form Panel
change <!> change
validate <!> validate
change <!> Fires when a value changed
select <!> Fires when a section gets selected
validate <!> Fires when the form becomes valid or invalid
@*/
Ox.FormPanel = function(options, self) {
@ -69,6 +70,7 @@ Ox.FormPanel = function(options, self) {
self.$sections[self.section].hide();
self.section = Ox.getIndexById(self.options.form, data.ids[0]);
self.$sections[self.section].show();
that.triggerEvent('select', {section: data.ids[0]});
}
});