Uploaded image for project: 'SR for Jira - Development'
  1. SR for Jira - Development
  2. SRJIRA-2302

Custom web item to trigger dialog renders it only when clicking on the text of a web item

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Done
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 5.0.1, 5.0.4
    • Fix Version/s: 5.1.0
    • Component/s: None
    • Labels:
      None
    • Sprint:
      Sprint 31 - Ends June 27, Sprint 31 - Ends July 11, Sprint 31 - Ends July 25, Sprint 31 - Ends Aug 7, Sprint 32 - Ends Aug 21, Sprint 32 - Ends Sept 4
    • Critical Points:
      0

      Description

      Setup a raw xml module with the following content:

      <web-item name="aero Button" i18n-name-key="aero-button.name" key="aero-button" 
                            section="system.top.navigation.bar" weight="1000">
                      <description key="aero-button.description">Links for aero</description>
                      <label key="aero"/>
                      <tooltip key="tool1">Menu item</tooltip>
                      <link linkId="aero-link"/>
                  </web-item>
      
                  <web-section name="dropDown" key="drop-down" location="aero-link" weight="1000">
                      <description key="drop-down.description">Drop-Down PlugIn</description>
                  </web-section>
      

      Then setup a custom web-item item as below:

      Click the "Dashboards" menu at the top and then "Test Web Item". The dialog will only be rendered correctly if you click exactly on the text. If you click on the item but not where the text is it will take you to the show dialog url rather than render it.

      It seems we need to bind the event handler to the <li> element rather than the <a> element.

        Attachments

          Activity

            People

            Assignee:
            jcarter Jonny Carter
            Reporter:
            amarkham Adam Markham
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: