* fix bug: show the max upload size of php setting.

This commit is contained in:
wangyidong
2013-01-18 02:31:42 +00:00
parent c6066a60e1
commit 740e82af5c

View File

@@ -19,7 +19,12 @@ EOT;
* Show the upload max filesize of config.
*/
maxUploadInfo = "(<?php printf($lang->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.