From 261330958aa07fa99bf55dd220ab0cd9c60cd1c4 Mon Sep 17 00:00:00 2001 From: FayCross Date: Thu, 7 Jul 2022 11:22:53 +0100 Subject: [PATCH] Fix that was stopping menu pages from loading --- .../xerte/parent_templates/Nottingham/common_html5/js/xenith.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/xerte/parent_templates/Nottingham/common_html5/js/xenith.js b/modules/xerte/parent_templates/Nottingham/common_html5/js/xenith.js index 37db9c6ba2..682c51fc14 100644 --- a/modules/xerte/parent_templates/Nottingham/common_html5/js/xenith.js +++ b/modules/xerte/parent_templates/Nottingham/common_html5/js/xenith.js @@ -2761,7 +2761,7 @@ function x_pageLoaded() { } // Check if page headerBgColour/headerTextColour has been set - if ((x_currentPageXML.getAttribute("headerBgColor") != undefined && x_currentPageXML.getAttribute("headerBgColor") != "") || (x_currentPageXML.getAttribute("headerTextColor") != undefined && x_currentPageXML.getAttribute("headerTextColor") != "")) { + if (!x_isMenu() && ((x_currentPageXML.getAttribute("headerBgColor") != undefined && x_currentPageXML.getAttribute("headerBgColor") != "") || (x_currentPageXML.getAttribute("headerTextColor") != undefined && x_currentPageXML.getAttribute("headerTextColor") != ""))) { const bgCol = x_currentPageXML.getAttribute("headerBgColor"); const textCol = x_currentPageXML.getAttribute("headerTextColor"); let customHeaderStyle = '';