Hey all!
i'm trying to create a new custom Button to create a blogpost in whatever space the user is currently visiting.
I have found:
<script>
AJS.toInit(function(){
AJS.$('.aui-header-primary .aui-nav').append('<li><a href="http://www.atlassian.com" class=" aui-nav-imagelink">Atlassian</a></li>');
});
</script>wich does create a Button with a Link to Atlassian but what i try to reach is:
/pages/createblogpost.action?spaceKey=AJS.params.spaceKey
AJS.params.spaceKey is the Javascript part that gets the SpaceKey.
How can i combine the HTML href command with the Javascript ?
Thanks in advance