Potential fix for preventing the filter buttons from loading multiple times
This commit is contained in:
parent
c75f65f3d5
commit
9309a4e28f
@ -109,6 +109,7 @@ function Setup(){
|
|||||||
//console.log(json);
|
//console.log(json);
|
||||||
newMangaConnector.replaceChildren();
|
newMangaConnector.replaceChildren();
|
||||||
connectorFilterBox = document.querySelector("#connectorFilterBox");
|
connectorFilterBox = document.querySelector("#connectorFilterBox");
|
||||||
|
connectorFilterBox.replaceChildren();
|
||||||
json.forEach(connector => {
|
json.forEach(connector => {
|
||||||
//Add the connector to the New Manga dropdown
|
//Add the connector to the New Manga dropdown
|
||||||
var option = document.createElement('option');
|
var option = document.createElement('option');
|
||||||
@ -132,6 +133,7 @@ function Setup(){
|
|||||||
//Add the publication status options to the filter bar
|
//Add the publication status options to the filter bar
|
||||||
publicationStatusOptions = ["Ongoing", "Completed", "On Hiatus", "Cancelled", "Upcoming", "Status Unavailable"];
|
publicationStatusOptions = ["Ongoing", "Completed", "On Hiatus", "Cancelled", "Upcoming", "Status Unavailable"];
|
||||||
statusFilterBox = document.querySelector("#statusFilterBox");
|
statusFilterBox = document.querySelector("#statusFilterBox");
|
||||||
|
statusFilterBox.replaceChildren();
|
||||||
publicationStatusOptions.forEach(publicationStatus => {
|
publicationStatusOptions.forEach(publicationStatus => {
|
||||||
var releaseStatus = document.createElement('status-filter');
|
var releaseStatus = document.createElement('status-filter');
|
||||||
releaseStatus.innerText = publicationStatus;
|
releaseStatus.innerText = publicationStatus;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user