From c0837fb4ff9bd04c86d2dc159b7cc119feb5bc13 Mon Sep 17 00:00:00 2001 From: rolux Date: Mon, 9 Jul 2012 15:59:50 +0200 Subject: [PATCH] Ox.FormPanel: add missing select event --- source/Ox.UI/js/Form/FormPanel.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source/Ox.UI/js/Form/FormPanel.js b/source/Ox.UI/js/Form/FormPanel.js index aeabee16..ff4d9890 100644 --- a/source/Ox.UI/js/Form/FormPanel.js +++ b/source/Ox.UI/js/Form/FormPanel.js @@ -5,8 +5,9 @@ Ox.FormPanel Form Panel options Options self Shared private variable ([options[, self]]) -> 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]}); } });