Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-2876

Context menu icons in tree only support GIFs - at least after javascript condition once has deactivated the menu item

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 4.3
    • 4.1.1
    • None
    • None

    Description

      In the tree configuration, one can define icons to be displayed with context menu items (ContextMenuItem.setIcon()). If you provide the path to a PNG file (say "/.resources/icons/16/my_icon.png"), the following will happen:

      • First, the icon is displayed with the menu item.
      • Once the menu item is deactivated by a javascript condition, it tries to display a file called "my_icon_inactive.gif", a GIF, not a PNG
      • Now when the menu item is activated again, the active icon is gone too, because the menu tries to display "my_icon.gif" now, also a GIF
        So the JS handling the icon does not look at the file extensions. The context menu icons therefore only really work with GIFs.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              gjoseph Magnolia International
              will Will Scheidegger
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD