diff options
| author | Nadya <[email protected]> | 2018-05-12 19:17:21 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2018-05-12 19:17:21 -0700 |
| commit | 92efc7bf17cee05c4782d571ca0ff4e37758bfa7 (patch) | |
| tree | 6b232e316c0c73ea4e50e22984c63e7405be7ea2 | |
| parent | Merge pull request #101 from RyoshiKayo/urls (diff) | |
| download | host.fuwn.me-92efc7bf17cee05c4782d571ca0ff4e37758bfa7.tar.xz host.fuwn.me-92efc7bf17cee05c4782d571ca0ff4e37758bfa7.zip | |
Add Delete to Album View
QOL change.
| -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 a4de774..e6c3188 100644 --- a/public/js/dashboard.js +++ b/public/js/dashboard.js @@ -142,7 +142,7 @@ panel.getUploads = function(album = undefined, page = undefined){ var div = document.createElement('div'); div.className = "column is-2"; if(item.thumb !== undefined) - div.innerHTML = `<a href="${item.file}" target="_blank"><img src="${item.thumb}"/></a>`; + div.innerHTML = `<a href="${item.file}" target="_blank"><img src="${item.thumb}"/></a> <a class="button is-small is-danger is-outlined" title="Delete album" 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>`; table.appendChild(div); |