mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-22 04:03:41 +00:00
bug #77, photo upload produces inelegant warning if sizelimit exceeded
This commit is contained in:
parent
526c40edab
commit
fbfe9a3f29
2 changed files with 3 additions and 0 deletions
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