How to override default System Resources?

mim dal October 7, 2015

I want to create a plugin and I need to override some calendar javascript files (calendar.js and calendar.setup.js)

Can I add these files to plugin web resources (atlassian-plugin.xml) ? on the other hand I want to load these javascript files instead of JIRA core web resources. any help would be greatly appreciated.

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
Volodymyr Krupach
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 7, 2015

As I know, plugin resources are loaded after JIRA resources (moreover you can enforce this using <dependency> tag for your resources to depend upon JIRA resource that serves calendar.js and calendar.setup.js).

calendar.js and calendar.setup.js define some global variables and your script which will be loaded after JIRA's calendar versions should override these global vars so your custom script will be used. Just make sure to load your scripts into appropriate context. Look here for more details.

TAGS
AUG Leaders

Atlassian Community Events