From 5a79416789d375a24dd81de89de0a0d3fedf5f98 Mon Sep 17 00:00:00 2001 From: thomascube <thomas@roundcube.net> Date: Sat, 21 Apr 2012 12:25:20 -0400 Subject: [PATCH] Add (missing) support for textarea cols to be added to the contact form --- program/js/app.js | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/program/js/app.js b/program/js/app.js index 7bf4432..f3c91b2 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -4620,6 +4620,14 @@ 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 -- Gitblit v1.9.1