diff --git a/source/Ox.UI/js/Form/Ox.Input.js b/source/Ox.UI/js/Form/Ox.Input.js index 213f6df2..f18db9c4 100644 --- a/source/Ox.UI/js/Form/Ox.Input.js +++ b/source/Ox.UI/js/Form/Ox.Input.js @@ -597,7 +597,7 @@ Ox.Input = function(options, self) { } // fixme: for some reason, if options.type is set, no change event fires // as a workaround, blur sends a value. remove later... - !self.cancelled && that.triggerEvent('blur', { + !self.cancelled && !self.submitted && that.triggerEvent('blur', { value: self.options.value }); } @@ -796,7 +796,10 @@ Ox.Input = function(options, self) { } function submit() { + self.submitted = true; self.$input.blur(); + self.submitted = false; + //self.options.type == 'textarea' && self.$input.blur(); that.triggerEvent('submit', { value: self.options.value }); @@ -1864,7 +1867,7 @@ Ox.Range_ = function(options, self) { value: val }); setThumb(animate); - that.triggerEvent('change', { value: val }); + that.triggerEvent('change', {value: val}); } } function setWidth(width) {