From 740e82af5cfc12b0ba53211e7e69dff17e243ec9 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Fri, 18 Jan 2013 02:31:42 +0000 Subject: [PATCH] * fix bug: show the max upload size of php setting. --- module/file/view/buildform.html.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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.