fixed display bug when switching between professional and standard without saving in between

This commit is contained in:
Neythen Treloar
2022-02-24 17:05:37 +00:00
parent ff4aa4376f
commit e572fb5142
4 changed files with 15 additions and 25 deletions

View File

@@ -877,14 +877,7 @@ function getListItems(list_el) {
return items;
}
// toggle professional
dispFormatButton.addEventListener("click", () => {
opt = getSelected(displayFormats);
fetch("/display_format", {
method: "PUT",
body: JSON.stringify(opt),
});
});
// gets which features are to be displayed
@@ -896,7 +889,7 @@ function getDisplaying(){
let features = getListItems(list_el);
return features;
return [features];
} else if (opt.includes("Professional")) {
var top_list_el = document.getElementById("display-format");