support textarea as type for Ox.Input
This commit is contained in:
parent
521d9dd5e5
commit
c7da33a08c
|
@ -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" +
|
||||
|
|
Loading…
Reference in New Issue
Block a user