Implement csv max,display for custom field text length

This commit is contained in:
Nathan Gray 2013-06-18 17:03:06 +00:00
parent 3f003ea3fb
commit c87a5d6806

View File

@ -380,7 +380,13 @@ var et2_customfields_list = et2_valueWidget.extend([et2_IDetachedDOM, et2_IInput
field.type = 'textbox';
attrs.rows = field.rows;
attrs.size = field.len;
if(field.len)
{
var size = field.len.split(',');
attrs.maxlength = size[0];
attrs.size = size.length > 1 ? size[1] : size[0];
}
return true;
},
_setup_select: function(field_name, field, attrs) {