From c7da33a08c1a0a50253a9f8896915da012ace8f1 Mon Sep 17 00:00:00 2001 From: j Date: Wed, 10 Feb 2010 21:19:33 +0530 Subject: [PATCH] support textarea as type for Ox.Input --- build/js/ox.ui.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/build/js/ox.ui.js b/build/js/ox.ui.js index f22c98c..d18af48 100644 --- a/build/js/ox.ui.js +++ b/build/js/ox.ui.js @@ -1500,15 +1500,17 @@ requires Ox.Input = function(options, self) { var self = self || {}, - that = new Ox.Element("input", self) + that = new Ox.Element(options.type=='textarea'?'textarea':'input', self) .defaults({ placeholder: "", size: "medium", type: "text" }) .options(options || {}); + if(options.type != 'textarea') { + that.attr({type: self.options.type}) + } that.attr({ - type: self.options.type, placeholder: self.options.placeholder }) .addClass("OxInput Ox" +