Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-24270

header.js needs to have a dependency declared on jira.webresources:jira-global

    XMLWordPrintable

Details

    Description

      [This can be closed. I have found that it works fine in Jira 4.3.4]

      header.js needs to have a dependency declared on jira.webresources:jira-global

      I have some Javascript in a plugin that I need to load after header.js loads.
      I figured the clean way to do this was to declare a dependency on jira.webresources:header
      like this

         <web-resource name="Create Issue Shortcut Disable Resources" key="create-issue-shortcut-disable-resource">
            <description>Static JavaScript that disables the Create Issue pop up</description>
            <dependency>jira.webresources:header</dependency>
            <resource name="disable-create-issue-shortcut.js" type="download" location="js/disable-create-issue-shortcut.js"/>
            <context>atl.general</context>
         </web-resource>
      

      However doing this pushes header.js up in the HTML HEAD above namespace.js which leads to this error

      jQuery.namespace is not a function
      resources/jira.webresources:header/header.js
      Line 576
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            adc6ee404f6d Jeff Kirby
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: