mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-19 23:32:17 +02:00
N°2847 Update newsroom templates with new variable in twig files
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
<div data-role="ibo-navigation-menu--notifications-menu--container">
|
<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>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
// TODO: We need to find a clean way to launch this script only once the JS scripts are loaded
|
// TODO: We need to find a clean way to launch this script only once the JS scripts are loaded
|
||||||
document.addEventListener("DOMContentLoaded", function(){
|
document.addEventListener("DOMContentLoaded", function(){
|
||||||
setTimeout(function(){
|
setTimeout(function(){
|
||||||
$('#{{ oNewsroomMenu.Id }}').newsroom_menu({{ oNewsroomMenu.Params|raw }});
|
$('#{{ oUIBlock.Id }}').newsroom_menu({{ oUIBlock.Params|raw }});
|
||||||
}, 500);
|
}, 500);
|
||||||
});
|
});
|
||||||
Reference in New Issue
Block a user