fixed custom theme state not saving. closes #547

This commit is contained in:
Jack 2020-11-10 20:23:14 +00:00
parent 3ebf98c14e
commit 76e65c4ee0

View file

@ -826,7 +826,7 @@ $(".pageSettings .section.themes .tabs .button").click((e) => {
$target.addClass("active");
setCustomThemeInputs();
if ($target.attr("tab") == "preset") {
setCustomTheme(false, true);
setCustomTheme(false);
applyCustomThemeColors();
swapElements(
$('.pageSettings .section.themes .tabContainer [tabContent="custom"]'),
@ -834,7 +834,7 @@ $(".pageSettings .section.themes .tabs .button").click((e) => {
250
);
} else {
setCustomTheme(true, true);
setCustomTheme(true);
applyCustomThemeColors();
swapElements(
$('.pageSettings .section.themes .tabContainer [tabContent="preset"]'),