aboutsummaryrefslogtreecommitdiff
path: root/public/js
diff options
context:
space:
mode:
authorNadya <[email protected]>2018-05-20 15:12:33 -0700
committerNadya <[email protected]>2018-05-20 15:12:33 -0700
commit55e64b1f36a4a09fdead04ce1450cf2f506e1dad (patch)
tree175af42a40c47c7e8037e2bc3f01b19251a559e8 /public/js
parentMerge pull request #113 from Kosemii/patch-1 (diff)
downloadhost.fuwn.me-55e64b1f36a4a09fdead04ce1450cf2f506e1dad.tar.xz
host.fuwn.me-55e64b1f36a4a09fdead04ce1450cf2f506e1dad.zip
Fix: File Deletion for No Thumbnail in Album View
If a file did not have a thumbnail the delete button would not render.
Diffstat (limited to 'public/js')
-rw-r--r--public/js/dashboard.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/public/js/dashboard.js b/public/js/dashboard.js
index 8afc89d..b080402 100644
--- a/public/js/dashboard.js
+++ b/public/js/dashboard.js
@@ -144,7 +144,7 @@ panel.getUploads = function(album = undefined, page = undefined){
if(item.thumb !== undefined)
div.innerHTML = `<a href="${item.file}" target="_blank"><img src="${item.thumb}"/></a><a class="button is-small is-danger is-outlined" title="Delete file" onclick="panel.deleteFile(${item.id})"><span class="icon is-small"><i class="fa fa-trash-o"></i></span></a>`;
else
- div.innerHTML = `<a href="${item.file}" target="_blank"><h1 class="title">.${item.file.split('.').pop()}</h1></a>`;
+ div.innerHTML = `<a href="${item.file}" target="_blank"><h1 class="title">.${item.file.split('.').pop()}</h1></a><a class="button is-small is-danger is-outlined" title="Delete file" onclick="panel.deleteFile(${item.id})"><span class="icon is-small"><i class="fa fa-trash-o"></i></span></a>`;
table.appendChild(div);
}