Details
-
Bug
-
Resolution: Fixed
-
Low
-
4.1.2
-
jira 4.1.2 enterprise commercial standalone
-
4.01
-
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