diff --git a/lib/WebGUI/Asset/Post.pm b/lib/WebGUI/Asset/Post.pm index 818ce0377..c4ab3fd00 100644 --- a/lib/WebGUI/Asset/Post.pm +++ b/lib/WebGUI/Asset/Post.pm @@ -490,7 +490,7 @@ sub getUploadControl { $uploadControl .= 'images["'.$ext.'"] = "'.$session{config}{extrasURL}.'/fileIcons/'.$file.'";'."\n"; } } - $uploadControl .= 'var uploader = new FileUploadControl("fileUploadControl", images); + $uploadControl .= 'var uploader = new FileUploadControl("fileUploadControl", images, '.WebGUI::International::get('removeLabel','Probably the WebGUI Namespace would be best since this appears in several modules - post, filepile, form').'); uploader.addRow(); '; return $uploadControl; diff --git a/www/extras/FileUploadControl.js b/www/extras/FileUploadControl.js index cf6abf650..ce43e2c2f 100755 --- a/www/extras/FileUploadControl.js +++ b/www/extras/FileUploadControl.js @@ -2,7 +2,7 @@ //input. Each file upload input is named "file" the control must be rendered in a form. The //Workspace id is the id of the div in the html page to render the control in. -function FileUploadControl(workspaceId, imageArray) { +function FileUploadControl(workspaceId, imageArray, removeLabel) { this.images = images; this.fileLimit = fileLimit; @@ -18,7 +18,7 @@ function FileUploadControl(workspaceId, imageArray) { str +='' str += ''; - str +=''; + str +=''; str += '
';