From 0e208c1762a0bb41052b6122d445aec1f9cd6b28 Mon Sep 17 00:00:00 2001 From: vitalets <noginsk@rambler.ru> Date: Fri, 18 Jan 2013 13:49:20 +0400 Subject: [PATCH] fix check of input text length for clear button --- src/inputs/text.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/inputs/text.js b/src/inputs/text.js index 1d0683d..b41d717 100644 --- a/src/inputs/text.js +++ b/src/inputs/text.js @@ -73,7 +73,7 @@ $(function(){ return; } - if(this.$input.val()) { + if(this.$input.val().length) { this.$clear.show(); } else { this.$clear.hide();