edit editorFactory.js

edit editorFactory.js
This commit is contained in:
daisyonly 2014-09-01 10:50:08 +08:00
parent 4c05dd7415
commit 86a7926fef
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ EditorFactory.prototype.createFile = function(label, name, required, size, id, v
var file = document.createElement("input");
$(file).attr("type", "file");
if(required == "true"){
$(field).attr("required", "required");
$(file).attr("required", "required");
}
// $(field).attr("maxlength", size);
$(fileEditor).append(fieldName.outerHTML + file.outerHTML);