Specify css class on customfield's row with named as field's id, in order to be able to customize its style

This commit is contained in:
Hadi Nategh 2015-03-30 09:50:53 +00:00
parent 3e47f37983
commit a06de7758b

View File

@ -189,7 +189,8 @@ var et2_customfields_list = et2_valueWidget.extend([et2_IDetachedDOM, et2_IInput
{ {
var row = jQuery(document.createElement("tr")) var row = jQuery(document.createElement("tr"))
.appendTo(this.tbody); .appendTo(this.tbody)
.addClass(this.id+'_'+id);
var cf = jQuery(document.createElement("td")) var cf = jQuery(document.createElement("td"))
.appendTo(row); .appendTo(row);
if(!field.type) field.type = 'text";' if(!field.type) field.type = 'text";'