[ 1203779 ] "Remove" Button in FileUploadControl not internationalized
This commit is contained in:
parent
9db11eba93
commit
25f4e4dfd5
2 changed files with 3 additions and 3 deletions
|
|
@ -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();
|
||||
</script>';
|
||||
return $uploadControl;
|
||||
|
|
|
|||
|
|
@ -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 +='<table style="display: none;">'
|
||||
|
||||
str += '<tr id="' + workspaceId + '.template" class="fileUploadRow"><td><img src="' + images["unknown"] + '" style="visibility: hidden"></td>';
|
||||
str +='<td><input type="file" name="file" size="40" onchange="FileUploadControl_valueChange(event)"></td><td><input type="button" value="Remove" onclick="FileUploadControl_removeButtonClick(event)"></td></tr>';
|
||||
str +='<td><input type="file" name="file" size="40" onchange="FileUploadControl_valueChange(event)"></td><td><input type="button" value="' + removeLabel + '" onclick="FileUploadControl_removeButtonClick(event)"></td></tr>';
|
||||
|
||||
str += '</table>';
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue