Hi,
I know this question has been asked several times... but I get nightmares already, i can't get my javascript in my Plugin. Here is resources definition in my atlassian-plugin.xml:
<web-resource key="skilldatenbank.resources" name="Skilldatenbank Plugin Web Resources" >
<dependency>com.atlassian.auiplugin:ajs</dependency>
<dependency>confluence.web.resources:ajs</dependency>
<dependency>confluence.web.resources:jquery</dependency>
<resource type="download" name="confluence-skilldatenbank-plugin.css" location="/css/confluence-skilldatenbank-plugin.css" >
<property key="content-type" value="text/css" />
</resource>
<resource type="download" name="confluence-skilldatenbank-plugin.js" location="/js/confluence-skilldatenbank-plugin.js" >
<property key="content-type" value="text/javascript"/>
</resource>
<resource type="download" name="images/" location="/images"/>
<context>atl.general</context>
</web-resource>
and so i try to reference this resources in my .vm page.
#requireResource("de.twt.confluence.plugins:skilldatenbank.resources")
but there are neither javacsript nor styles in my page...
what is even more strange, it is not a self-defining <script> rendered in the template...
<head>
<title>$i18n.getText("catpureskills.page.title")</title>
#requireResource("de.twt.confluence.plugins:skilldatenbank.resources")
<script type="text/javascript">
jQuery(document).ready(function()
{
alert();
});
function fnSendAssessment(arg) {
alert(arg);
}
</script>
</head>
if i start my "plugin" with: atlas-debug it does't work.
Please HELP!!! :-)