Prerequisites to the custom fields

SVN:trunk[3909]
This commit is contained in:
Guillaume Lajarige
2016-02-11 15:24:29 +00:00
parent f2fabe4eec
commit d7a69118bc
2 changed files with 19 additions and 10 deletions

View File

@@ -295,9 +295,6 @@ $(function()
{
this.buildData.style_code += ' '+ field.css_inline;
}
// JS widget itop.form_field
var json_validators = (field.validators != undefined) ? JSON.stringify(field.validators) : 'null';
this.buildData.script_code += '; $("[' + this.options.field_identifier_attr + '=\'' + field.id + '\']").form_field({ validators: ' + json_validators + ' });';
},
buildForm: function()