Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
jinpresta committed Sep 12, 2024
1 parent e4cbef3 commit 0fb733a
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions views/templates/hook/dashboard-zone-three.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -21,28 +21,14 @@
if (typeof renderCdcError === 'function') {
window.$(document).ready(function() {
renderCdcError($('#cdc-dashboard-news'));
renderCdcError($('#cdc-stay-by-your-side'));
renderCdcError($('#cdc-dashboard-ps-update'));
});
}
} else {
const dashboardNewsContext = {$shop_context};
const dashboardStayByYourSideContext = {$shop_context};
const dashboardPrestashopUpdateContext = {$shop_context};
const renderNews = window.mboCdc.renderDashboardNews
renderNews(dashboardNewsContext, '#cdc-dashboard-news')
const renderStayByYourSide = window.mboCdc.renderDashboardStayByYourSide
renderStayByYourSide(dashboardStayByYourSideContext, '#cdc-stay-by-your-side')
const renderPrestashopUpdate = window.mboCdc.renderDashboardPrestashopUpdate
renderPrestashopUpdate(dashboardPrestashopUpdateContext, '#cdc-dashboard-ps-update')
}
</script>

<section id="cdc-dashboard-news" class="dash_news cdc-container" data-error-path="{$cdcErrorUrl}"></section>

<section id="cdc-dashboard-ps-update" class="cdc-container" data-error-path="{$cdcErrorUrl}"></section>

<section id="cdc-stay-by-your-side" class="cdc-container" data-error-path="{$cdcErrorUrl}"></section>
<section id="cdc-dashboard-news" class="dash_news cdc-container" data-error-path="{$cdcErrorUrl}"></section>

0 comments on commit 0fb733a

Please sign in to comment.