diff --git a/frontend/app.js b/frontend/app.js index fa00d69..ee8954d 100644 --- a/frontend/app.js +++ b/frontend/app.js @@ -319,7 +319,6 @@ async function uploadChunked(next){ // --- DOM refs --- const dz = document.getElementById('dropzone'); const fi = document.getElementById('fileInput'); -const foi = document.getElementById('folderInput'); const btnMobilePick = document.getElementById('btnMobilePick'); const btnClearFinished = document.getElementById('btnClearFinished'); const btnClearAll = document.getElementById('btnClearAll'); @@ -442,9 +441,6 @@ fi.addEventListener('click', (e) => { // prevent bubbling to parents (extra safety) e.stopPropagation(); }); -if (foi) { - foi.addEventListener('click', (e) => { e.stopPropagation(); }); -} const onFilesSelected = (inputEl) => { if (!inputEl) return; @@ -461,7 +457,6 @@ const onFilesSelected = (inputEl) => { }; fi.onchange = () => onFilesSelected(fi); -if (foi) foi.onchange = () => onFilesSelected(foi); // If you want the whole dropzone clickable on desktop only, enable this: if (!isTouch) { diff --git a/frontend/index.html b/frontend/index.html index 09d0b9d..a69ddb3 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -37,26 +37,15 @@ - -
-
- -
-
- -
+ +
+
diff --git a/frontend/invite.html b/frontend/invite.html index d05c258..685fb82 100644 --- a/frontend/invite.html +++ b/frontend/invite.html @@ -60,26 +60,15 @@
- -
-
- -
-
- -
+ +
+
Files will be uploaded to the selected album for this invite. @@ -131,7 +120,6 @@ 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) { @@ -139,7 +127,6 @@ 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'); @@ -156,7 +143,6 @@ 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) { @@ -171,7 +157,6 @@ // 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 {}