From c4de1a3a4036a6bfd1533738f2b82fde669641b1 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sun, 18 Mar 2012 20:50:38 +0100 Subject: [PATCH] do not trigger change event(with same value) on blur if changeOnKeypress is enabled --- source/Ox.UI/js/Form/Ox.Input.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Ox.UI/js/Form/Ox.Input.js b/source/Ox.UI/js/Form/Ox.Input.js index af8fa6bd..49d63179 100644 --- a/source/Ox.UI/js/Form/Ox.Input.js +++ b/source/Ox.UI/js/Form/Ox.Input.js @@ -626,7 +626,7 @@ Ox.Input = function(options, self) { // change gets invoked before blur self.options.value = self.$input.val(); self.originalValue = self.options.value; - that.triggerEvent('change', { + !self.options.changeOnKeypress && that.triggerEvent('change', { value: self.options.value }); }