diff options
| author | Kana <[email protected]> | 2018-05-21 04:51:47 -0300 |
|---|---|---|
| committer | GitHub <[email protected]> | 2018-05-21 04:51:47 -0300 |
| commit | 41fd4fb81d0625b3aaf3ab9503b6395681c82114 (patch) | |
| tree | 21cae50be4642fc5ab659efe3954e43cf6c61a94 | |
| parent | Merge pull request #117 from Kosemii/patch-2 (diff) | |
| parent | Fix: File Deletion for No Thumbnail in Album View (diff) | |
| download | host.fuwn.me-41fd4fb81d0625b3aaf3ab9503b6395681c82114.tar.xz host.fuwn.me-41fd4fb81d0625b3aaf3ab9503b6395681c82114.zip | |
Merge pull request #118 from NadyaNayme/no-thumb-deletion
Fix: File Deletion for No Thumbnail in Album View
| -rw-r--r-- | public/js/dashboard.js | 2 |
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); } |