Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
$('<option value="-null-"/>').text(Drupal.t('Navigation'))
is loosing the menu name. So nobody is able to identify if this is the user block menu or the navigation or any other. A site could have a lot of menus.
Comments
Comment #1
hass CreditAttribution: hass commentedComment #2
btopro CreditAttribution: btopro commentedwhat's the suggested solution? Write the name of the menu into the first option per instance of tinynav?
Comment #3
hass CreditAttribution: hass commentedI would write:
Navigation: [select box]
User menu: [select box]
and remove this fake item from the selectbox as there is no functionality behind. Or write the menu name as first item. This may be just a CSS trick, but it may be very difficult to implement for many themes. Alt least the first item is extremely confusing if there is more than one menu.
Comment #4
btopro CreditAttribution: btopro commentedWill accept patches for this though may need to use other js / css to target these since they can get really specific.