do not trigger change event(with same value) on blur if changeOnKeypress is enabled

This commit is contained in:
j 2012-03-18 20:50:38 +01:00
parent 237d12ece7
commit c4de1a3a40

View file

@ -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
});
}