Skip to content

Commit

Permalink
Fix for color changer with custom Header colours
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnSmith-LT committed Jun 29, 2022
1 parent b2f63f3 commit 54dcbbc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Expand Up @@ -2445,6 +2445,8 @@ function x_changePageStep6() {
}
}
}

$("#customHeaderStyle").prop('disabled', x_specialTheme !== '');

x_focusPageContents(false);

Expand Down Expand Up @@ -2802,9 +2804,10 @@ function x_pageLoaded() {
if (textCol != undefined && textCol != "") {
customHeaderStyle += 'color: ' + formatColour(x_currentPageXML.getAttribute('headerTextColor')) + ';';
}
customHeaderStyle = '<style type="text/css">#x_headerBlock {' + customHeaderStyle + '}</style>';
customHeaderStyle = '<style id="customHeaderStyle" type="text/css">#x_headerBlock {' + customHeaderStyle + '}</style>';
$('#x_page' + x_currentPage).append(customHeaderStyle);
}
$("#customHeaderStyle").prop('disabled', x_specialTheme !== '');

XENITH.VARIABLES.handleSubmitButton();

Expand Down
Expand Up @@ -206,7 +206,9 @@
colourChanger.applyFilter($(this).attr('value'));
x_specialTheme = 'blackonyellow';
break;
}
}

$("#customHeaderStyle").prop('disabled', x_specialTheme !== '');

var pageTypesRequiringRefresh = ['chart', 'textDrawing'];

Expand Down

0 comments on commit 54dcbbc

Please sign in to comment.