mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 11:08:45 +02:00
Remove inline CSS from NavigationMenu
This commit is contained in:
@@ -31,6 +31,7 @@ $(function()
|
|||||||
},
|
},
|
||||||
css_classes:
|
css_classes:
|
||||||
{
|
{
|
||||||
|
is_hidden: 'ibo-is-hidden',
|
||||||
menu_expanded: 'ibo-is-expanded',
|
menu_expanded: 'ibo-is-expanded',
|
||||||
menu_active: 'ibo-is-active',
|
menu_active: 'ibo-is-active',
|
||||||
menu_filtered: 'ibo-is-filtered',
|
menu_filtered: 'ibo-is-filtered',
|
||||||
@@ -361,7 +362,7 @@ $(function()
|
|||||||
for (const [key, value] of Object.entries(data.counts)) {
|
for (const [key, value] of Object.entries(data.counts)) {
|
||||||
let menuEntry = me.element.find('[data-menu-id="'+key+'"]');
|
let menuEntry = me.element.find('[data-menu-id="'+key+'"]');
|
||||||
menuEntry.html(value);
|
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 }}>
|
<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>
|
<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 %}
|
{% 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 %}
|
{% endif %}
|
||||||
</a>
|
</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|||||||
Reference in New Issue
Block a user