From 8ef73d810f7a8bceae8df61d3615e38efebed1cc Mon Sep 17 00:00:00 2001 From: Michael Dickson Date: Tue, 26 Nov 2024 11:05:51 -0500 Subject: [PATCH] remove merge artifacts --- blocks/gmo-program-details/gmo-program-details.js | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/blocks/gmo-program-details/gmo-program-details.js b/blocks/gmo-program-details/gmo-program-details.js index c68b1a1..f48615c 100644 --- a/blocks/gmo-program-details/gmo-program-details.js +++ b/blocks/gmo-program-details/gmo-program-details.js @@ -263,7 +263,6 @@ async function addProgramStats(block) { // build header let header = block.querySelector('.details-header-wrapper'); - // build header if (!(program === undefined)) { const programHeader = buildHeader(program, queryVars).outerHTML; // Update the header with the actual data @@ -458,10 +457,6 @@ async function addProgramStats(block) { // calendar tab buildCalendar(await deliverables, block, "year", await deliverableMappings); - // enable 'read more' buttons - // calendar tab - buildCalendar(await deliverables, block, "year", await deliverableMappings); - // enable 'read more' buttons block.querySelectorAll('.read-more').forEach((button) => { button.addEventListener('click', (event) => { @@ -478,20 +473,11 @@ async function addProgramStats(block) { switchTab(event.target); }); - // decorate any new icons - // enable tab switching - block.querySelector('.tab-wrapper').addEventListener('click', (event) => { - switchTab(event.target); - }); - // decorate any new icons decorateIcons(block); // remove loading spinner hideLoadingOverlay(bodyWrapper); - - // remove loading spinner - hideLoadingOverlay(bodyWrapper); } function enableBackBtn(block, blockConfig) {