summaryrefslogtreecommitdiff
path: root/program/js/app.js
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2012-04-21 16:25:20 +0000
committerthomascube <thomas@roundcube.net>2012-04-21 16:25:20 +0000
commit5a79416789d375a24dd81de89de0a0d3fedf5f98 (patch)
tree7f750095463879142b984935f45dca918cc12efb /program/js/app.js
parentb1b808d2cd471d33d29d202ce421e678608edb7e (diff)
Add (missing) support for textarea cols to be added to the contact form
Diffstat (limited to 'program/js/app.js')
-rw-r--r--program/js/app.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/program/js/app.js b/program/js/app.js
index 7bf44320d..f3c91b2e5 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -4620,6 +4620,14 @@ function rcube_webmail()
if (colprop.type == 'date' && $.datepicker)
input.datepicker();
}
+ else if (colprop.type == 'textarea') {
+ input = $('<textarea>')
+ .addClass('ff_'+col)
+ .attr({ name: '_'+col+name_suffix, cols:colprop.size, rows:colprop.rows })
+ .appendTo(cell);
+
+ this.init_edit_field(col, input);
+ }
else if (colprop.type == 'composite') {
var childcol, cp, first, templ, cols = [], suffices = [];
// read template for composite field order