change color disable button

This commit is contained in:
Данил 2022-10-08 22:21:41 +03:00
parent 2842beff33
commit 26d463ce2a

View file

@ -100,7 +100,7 @@ function wallpaper(data) {
if($(`img#${id}.card-img-top`).attr("src") !== "http://localhost:4662/static/image/placeholder.png") {
button.innerHTML = `<button type="button" class="btn btn-primary" id="setWallpaper">Set Wallpaper</button>`;
} else {
button.innerHTML = `<button type="button" class="btn btn-primary" id="setWallpaper" disabled>Set Wallpaper</button>`;
button.innerHTML = `<button type="button" class="btn" id="setWallpaper" disabled style="background-color: grey; color: white;">Set Wallpaper</button>`;
}
let setWallpaper = document.querySelector("#setWallpaper");