add file input for progressive enhancement and testing

This commit is contained in:
Doug Bell 2011-01-31 20:38:00 -06:00
parent be3052ce6d
commit 8ca685e089
2 changed files with 9 additions and 1 deletions

View file

@ -4,6 +4,11 @@
function FileUploadControl(fieldName, imageArray, removeLabel, fileLimit, size) {
// Remove the existing field
var replace = document.getElementById( fieldName );
replace.parentNode.removeChild( replace );
this.images = imageArray;
this.fileLimit = fileLimit;
this.fileCount = 1;