From c968b1a4df202eabcddcc788ac793049aa175e0f Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 10 Sep 2022 11:31:43 +0200 Subject: [PATCH] remove element instead of hiding it --- files/templates/submit_hats.html | 2 +- files/templates/submit_marseys.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/files/templates/submit_hats.html b/files/templates/submit_hats.html index 6b99a054d..c2a62c119 100644 --- a/files/templates/submit_hats.html +++ b/files/templates/submit_hats.html @@ -114,7 +114,7 @@ }, (xhr) => { if(xhr.status == 200) { - document.getElementById(`${name}-hat`).classList.add('d-none') + document.getElementById(`${name}-hat`).remove() } } ); diff --git a/files/templates/submit_marseys.html b/files/templates/submit_marseys.html index 3928ea72c..30779952e 100644 --- a/files/templates/submit_marseys.html +++ b/files/templates/submit_marseys.html @@ -119,7 +119,7 @@ }, (xhr) => { if(xhr.status == 200) { - document.getElementById(`${name}-marsey`).classList.add('d-none') + document.getElementById(`${name}-marsey`).remove() } } );