Added rows attribute to texture.

This commit is contained in:
Martin Edenhofer 2015-08-10 11:42:53 +02:00
parent 5442eb5762
commit 353e2dce5c

View file

@ -55,6 +55,7 @@
name: 'body',
tag: 'textarea',
placeholder: 'Your Message...',
rows: 7,
},
]
@ -189,7 +190,7 @@
item.append('<input class="form-control" name="' + value.name + '" type="' + value.type + '" placeholder="' + value.placeholder + '">')
}
else if (value.tag == 'textarea') {
item.append('<textarea class="form-control" name="' + value.name + '" placeholder="' + value.placeholder + '"></textarea>')
item.append('<textarea class="form-control" name="' + value.name + '" placeholder="' + value.placeholder + '" rows="' + value.rows + '"></textarea>')
}
$form.append(item)
})