From be44815ce4670c11ca9e4e2b14f75eb6c5ab278a Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Sun, 19 Feb 2012 16:29:09 +0000 Subject: [PATCH] make input fire a clear event --- source/Ox.UI/js/Form/Ox.Input.js | 1 + 1 file changed, 1 insertion(+) diff --git a/source/Ox.UI/js/Form/Ox.Input.js b/source/Ox.UI/js/Form/Ox.Input.js index 89fe8d34..af8fa6bd 100644 --- a/source/Ox.UI/js/Form/Ox.Input.js +++ b/source/Ox.UI/js/Form/Ox.Input.js @@ -634,6 +634,7 @@ Ox.Input = function(options, self) { function clear() { // fixme: set to min, not zero // fixme: make this work for password + that.triggerEvent('clear'); self.options.value = ''; if (self.options.type == 'float') { self.options.value = '0.0';