bug #77, photo upload produces inelegant warning if sizelimit exceeded
parent
526c40edab
commit
fbfe9a3f29
BIN
js_upload.tgz
BIN
js_upload.tgz
Binary file not shown.
|
@ -45,6 +45,8 @@ function js_upload_form(&$a,&$b) {
|
|||
$cancel = t('Cancel');
|
||||
$failed = t('Failed');
|
||||
|
||||
$maximagesize = intval(get_config('system','maximagesize'));
|
||||
|
||||
$b['addon_text'] .= <<< EOT
|
||||
|
||||
<div id="file-uploader-demo1">
|
||||
|
@ -91,6 +93,7 @@ function createUploader() {
|
|||
'</li>',
|
||||
|
||||
debug: true,
|
||||
sizeLimit: $maximagesize,
|
||||
onSubmit: function(id,filename) {
|
||||
if (typeof acl!="undefined"){
|
||||
uploader.setParams( {
|
||||
|
|
Loading…
Reference in New Issue