forked from MarseyWorld/MarseyWorld
remove element instead of hiding it
parent
327176d31b
commit
c968b1a4df
|
@ -114,7 +114,7 @@
|
||||||
},
|
},
|
||||||
(xhr) => {
|
(xhr) => {
|
||||||
if(xhr.status == 200) {
|
if(xhr.status == 200) {
|
||||||
document.getElementById(`${name}-hat`).classList.add('d-none')
|
document.getElementById(`${name}-hat`).remove()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
|
@ -119,7 +119,7 @@
|
||||||
},
|
},
|
||||||
(xhr) => {
|
(xhr) => {
|
||||||
if(xhr.status == 200) {
|
if(xhr.status == 200) {
|
||||||
document.getElementById(`${name}-marsey`).classList.add('d-none')
|
document.getElementById(`${name}-marsey`).remove()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue