aboutsummaryrefslogtreecommitdiffstats
path: root/backend/static/index.js
diff options
context:
space:
mode:
authorMaksymilian Jopek <maks@jopek.eu>2023-04-13 23:19:23 +0200
committerMaksymilian Jopek <maks@jopek.eu>2023-04-13 23:19:23 +0200
commit1871b834a715be2e8c4e25938cf3db3866a80ec6 (patch)
treecb5eba8e41a1aa19d9d511567f901d73b89e0981 /backend/static/index.js
parent4582aee9c51800f7b236fc9d731829c16254429f (diff)
downloadaparatus-master.tar.gz
aparatus-master.tar.zst
aparatus-master.zip
Add Readme and LicenseHEADmaster
Fix bug when without upload folder
Diffstat (limited to 'backend/static/index.js')
-rw-r--r--backend/static/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/static/index.js b/backend/static/index.js
index 07f4c89..7718c89 100644
--- a/backend/static/index.js
+++ b/backend/static/index.js
@@ -1,6 +1,6 @@
const newDiv = `<!-- <div class="dImg"> -->
<p>$name</p><br>
- <img src="upload/$name" alt="$name" width="120" height="120"/>
+ <a href="upload/$name"><img src="upload/$name" alt="$name" width="120" height="120"/></a>
<button type="button" onclick="deleteFiles(['$name'])">Delete</button>
<button type="button" onclick="renameFile('$name')">Rename</button><br>
<label>