From b0065e1ec8ff03bcbcb3daf0c6e864407990b9bc Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Fri, 11 Nov 2011 11:08:54 +0000 Subject: [PATCH] fix a bug related to resetting the placeholder of an input element to '' --- source/Ox.UI/js/Form/Ox.Input.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/source/Ox.UI/js/Form/Ox.Input.js b/source/Ox.UI/js/Form/Ox.Input.js index b2c1a620..bd694399 100644 --- a/source/Ox.UI/js/Form/Ox.Input.js +++ b/source/Ox.UI/js/Form/Ox.Input.js @@ -789,11 +789,9 @@ Ox.Input = function(options, self) { } } } else { - if (self.options.value === '') { - self.$input - .removeClass('OxPlaceholder') - .val(''); - } + self.$input + .removeClass('OxPlaceholder') + .val(self.options.value); } }