From 7c7f97066e4d9422b9c734617a86a59e43e81035 Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Sat, 16 Jun 2012 13:35:14 +0000 Subject: [PATCH] FormElementGroup: don't trigger change on submit --- source/Ox.UI/js/Form/FormElementGroup.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/source/Ox.UI/js/Form/FormElementGroup.js b/source/Ox.UI/js/Form/FormElementGroup.js index 48010a94..a87af1ae 100644 --- a/source/Ox.UI/js/Form/FormElementGroup.js +++ b/source/Ox.UI/js/Form/FormElementGroup.js @@ -50,7 +50,7 @@ Ox.FormElementGroup = function(options, self) { that.triggerEvent({autovalidate: data}); }, change: change, - submit: change, + //submit: change, validate: function(data) { that.triggerEvent({validate: data}); } @@ -60,9 +60,7 @@ Ox.FormElementGroup = function(options, self) { function change(data) { self.options.value = getValue(); - that.triggerEvent('change', { - value: self.options.value - }); + that.triggerEvent('change', {value: self.options.value}); } /*