thomascube
2012-04-21 5a79416789d375a24dd81de89de0a0d3fedf5f98
Add (missing) support for textarea cols to be added to the contact form

1 files modified
8 ■■■■■ changed files
program/js/app.js 8 ●●●●● patch | view | raw | blame | history
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