diff --git a/module/file/view/buildform.html.php b/module/file/view/buildform.html.php index 57856220ea..10ba53b64e 100644 --- a/module/file/view/buildform.html.php +++ b/module/file/view/buildform.html.php @@ -19,7 +19,12 @@ EOT; * Show the upload max filesize of config. */ maxUploadInfo = "(file->maxUploadSize, ini_get('upload_max_filesize'));?>)"; -$(document).ready(function(){ $('.fileBox').parent().parent().parent().find('th').append(maxUploadInfo); }); +$(function() +{ + parentTag = $('#fileform').parent(); + if(parentTag.attr('tagName') == 'TD') parentTag.parent().find('th').append(maxUploadInfo); + if(parentTag.attr('tagName') == 'FIELDSET') parentTag.find('legend').append(maxUploadInfo); +}); /** * Set the width of the file form.