N°2847 Update newsroom templates with new variable in twig files

This commit is contained in:
Stephen Abello
2020-08-07 09:25:33 +02:00
parent f20310b437
commit 93871308d1
2 changed files with 2 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
<div data-role="ibo-navigation-menu--notifications-menu--container">
<div {% if oNewsroomMenu.Id is defined %}id="{{ oNewsroomMenu.Id }}"{% endif %} class="ibo-popover-menu" data-role="ibo-popover-menu">
<div {% if oUIBlock.Id is defined %}id="{{ oUIBlock.Id }}"{% endif %} class="ibo-popover-menu" data-role="ibo-popover-menu">
</div>
</div>

View File

@@ -1,6 +1,6 @@
// TODO: We need to find a clean way to launch this script only once the JS scripts are loaded
document.addEventListener("DOMContentLoaded", function(){
setTimeout(function(){
$('#{{ oNewsroomMenu.Id }}').newsroom_menu({{ oNewsroomMenu.Params|raw }});
$('#{{ oUIBlock.Id }}').newsroom_menu({{ oUIBlock.Params|raw }});
}, 500);
});