forked from friendica/friendica-addons
bug #77, photo upload produces inelegant warning if sizelimit exceeded
This commit is contained in:
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');
|
$cancel = t('Cancel');
|
||||||
$failed = t('Failed');
|
$failed = t('Failed');
|
||||||
|
|
||||||
|
$maximagesize = intval(get_config('system','maximagesize'));
|
||||||
|
|
||||||
$b['addon_text'] .= <<< EOT
|
$b['addon_text'] .= <<< EOT
|
||||||
|
|
||||||
<div id="file-uploader-demo1">
|
<div id="file-uploader-demo1">
|
||||||
|
@ -91,6 +93,7 @@ function createUploader() {
|
||||||
'</li>',
|
'</li>',
|
||||||
|
|
||||||
debug: true,
|
debug: true,
|
||||||
|
sizeLimit: $maximagesize,
|
||||||
onSubmit: function(id,filename) {
|
onSubmit: function(id,filename) {
|
||||||
if (typeof acl!="undefined"){
|
if (typeof acl!="undefined"){
|
||||||
uploader.setParams( {
|
uploader.setParams( {
|
||||||
|
|
Loading…
Reference in a new issue