bug #77, photo upload produces inelegant warning if sizelimit exceeded

This commit is contained in:
friendica 2012-02-16 22:48:12 -08:00
parent 526c40edab
commit fbfe9a3f29
2 changed files with 3 additions and 0 deletions

Binary file not shown.

View file

@ -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( {