mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-25 02:13:41 +00:00
Merge pull request #915 from MrPetovan/bug/js_upload-public-visibility
[js_upload] Restore public image upload
This commit is contained in:
commit
afe5846348
1 changed files with 9 additions and 4 deletions
|
@ -34,14 +34,19 @@
|
||||||
let newalbumElm = document.getElementById('photos-upload-newalbum');
|
let newalbumElm = document.getElementById('photos-upload-newalbum');
|
||||||
let albumElm = document.getElementById('photos-upload-album-select');
|
let albumElm = document.getElementById('photos-upload-album-select');
|
||||||
|
|
||||||
|
let contact_allow = document.querySelector('[name="contact_allow"]:not(:disabled)');
|
||||||
|
let group_allow = document.querySelector('[name="group_allow"]:not(:disabled)');
|
||||||
|
let contact_deny = document.querySelector('[name="contact_deny"]:not(:disabled)');
|
||||||
|
let group_deny = document.querySelector('[name="group_deny"]:not(:disabled)');
|
||||||
|
|
||||||
uploader.setParams({
|
uploader.setParams({
|
||||||
newalbum : newalbumElm ? newalbumElm.value : '',
|
newalbum : newalbumElm ? newalbumElm.value : '',
|
||||||
album : albumElm ? albumElm.value : '',
|
album : albumElm ? albumElm.value : '',
|
||||||
not_visible : document.getElementById('photos-upload-noshare').checked,
|
not_visible : document.getElementById('photos-upload-noshare').checked,
|
||||||
contact_allow : document.querySelector('[name="contact_allow"]').value,
|
contact_allow : contact_allow ? contact_allow.value : '',
|
||||||
group_allow : document.querySelector('[name="group_allow"]').value,
|
group_allow : group_allow ? group_allow.value : '',
|
||||||
contact_deny : document.querySelector('[name="contact_deny"]').value,
|
contact_deny : contact_deny ? contact_deny.value : '',
|
||||||
group_deny : document.querySelector('[name="group_deny"]').value,
|
group_deny : group_deny ? group_deny.value : '',
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue