mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
Remove inline CSS from NavigationMenu
This commit is contained in:
@@ -31,6 +31,7 @@ $(function()
|
||||
},
|
||||
css_classes:
|
||||
{
|
||||
is_hidden: 'ibo-is-hidden',
|
||||
menu_expanded: 'ibo-is-expanded',
|
||||
menu_active: 'ibo-is-active',
|
||||
menu_filtered: 'ibo-is-filtered',
|
||||
@@ -361,7 +362,7 @@ $(function()
|
||||
for (const [key, value] of Object.entries(data.counts)) {
|
||||
let menuEntry = me.element.find('[data-menu-id="'+key+'"]');
|
||||
menuEntry.html(value);
|
||||
menuEntry.show();
|
||||
menuEntry.removeClass(me.css_classes.is_hidden);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -4,7 +4,8 @@
|
||||
<a class="ibo-navigation-menu--menu-node-title" data-role="ibo-navigation-menu--menu-node-title" href="{{ aMenuNode.sUrl }}" {{ sTarget|raw }}>
|
||||
<span class="ibo-navigation-menu--menu-node-label" data-role="ibo-navigation-menu--menu-node-label" title="{{ aMenuNode.sTitle }}">{{ aMenuNode.sTitle }}</span>
|
||||
{% if aMenuNode.bHasCount %}
|
||||
<span class="ibo-navigation-menu--menu-node-counter" data-menu-id="{{ aMenuNode.sId }}" style="display: none;"></span>
|
||||
{# Counters will be shown once the background update is done (see JS widget) #}
|
||||
<span class="ibo-navigation-menu--menu-node-counter ibo-is-hidden" data-menu-id="{{ aMenuNode.sId }}"></span>
|
||||
{% endif %}
|
||||
</a>
|
||||
{% else %}
|
||||
|
||||
Reference in New Issue
Block a user