Files will be uploaded to the selected album for this invite.
@@ -116,6 +131,7 @@
document.getElementById('liStatus').textContent = j.active ? 'Active' : ('Inactive' + (j.inactiveReason ? (' ('+j.inactiveReason+')') : ''));
const dz = document.getElementById('dropzone');
const fi = document.getElementById('fileInput');
+ const foi = document.getElementById('folderInput');
const itemsEl = document.getElementById('items');
const pwGate = document.getElementById('pwGate');
if (j.passwordRequired && !j.authorized) {
@@ -123,6 +139,7 @@
pwGate.classList.remove('hidden');
dz.classList.add('opacity-50');
if (fi) fi.disabled = true;
+ if (foi) foi.disabled = true;
itemsEl.innerHTML = '
Enter the password above to enable uploads.
';
// Wire unlock button
const pwInput = document.getElementById('pwInput');
@@ -139,6 +156,7 @@
pwGate.classList.add('hidden');
dz.classList.remove('opacity-50');
if (fi) fi.disabled = false;
+ if (foi) foi.disabled = false;
itemsEl.innerHTML = '';
try { showBanner('Password accepted. You can upload now.', 'ok'); } catch {}
} catch (e) {
@@ -153,6 +171,7 @@
// Disable dropzone
dz.classList.add('opacity-50');
fi.disabled = true;
+ if (foi) foi.disabled = true;
itemsEl.innerHTML = `
This link is not active${j.inactiveReason?` (${j.inactiveReason})`:''}.
`;
}
} catch {}