diff --git a/web/static/scripts/gallery.js b/web/static/scripts/gallery.js index 7fe1281..0fb9ea2 100644 --- a/web/static/scripts/gallery.js +++ b/web/static/scripts/gallery.js @@ -96,7 +96,13 @@ function wallpaper(data) { let title = document.querySelector(".w-modal-title"); let button = document.querySelector(".modal-footer"); - button.innerHTML = ``; + + if($(`img#${id}.card-img-top`).attr("src") !== "http://localhost:4662/static/image/placeholder.png") { + button.innerHTML = ``; + } else { + button.innerHTML = ``; + } + let setWallpaper = document.querySelector("#setWallpaper"); ids[id]['copyright'] = ids[id]['copyright'] === undefined ? "NASA" : ids[id]['copyright'];