diff options
| author | Maksymilian Jopek <maks@jopek.eu> | 2023-04-13 23:19:23 +0200 |
|---|---|---|
| committer | Maksymilian Jopek <maks@jopek.eu> | 2023-04-13 23:19:23 +0200 |
| commit | 1871b834a715be2e8c4e25938cf3db3866a80ec6 (patch) | |
| tree | cb5eba8e41a1aa19d9d511567f901d73b89e0981 /backend/static | |
| parent | 4582aee9c51800f7b236fc9d731829c16254429f (diff) | |
| download | aparatus-master.tar.gz aparatus-master.tar.zst aparatus-master.zip | |
Fix bug when without upload folder
Diffstat (limited to 'backend/static')
| -rw-r--r-- | backend/static/index.js | 2 |
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> |
