Hi,
I have a problem with javascript. I followed the steps to get rid of all $webResourceManager.requireResource in my velocity files on THIS PAGE. The problem is that I need to execute some javascript function after the content of some tab in projects view is all loaded. e.g.: I am on Road Map tab and I click on tab defined in our plug-in I need to execute this function after this page is loaded. Is there any kind of the event that is fired when I go through tabs (similar to "dialogContentReady" when opening popup window.)? I tried just "ready" event which is fired only on refresh of all tabs but not when going between tabs. "load" event doesn't work at all.
Thanks for any help.
Ok so I found the answer for this finally.
For Project tab panels is used
JIRA.Project.navigationTabs.addLoadEvent(tabId, function);
and for the User profile tab panels
JIRA.TabManager.navigationTabs.addLoadEvent(tabId, function);
where tabId is the ID of the tab which we are switching to and function is the function that is to be executed after the tab is loaded.
The linked page mentions JIRA.Events.NEW_CONTENT_ADDED - did you try that?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes I did and tried everything mentioned on that page. It seems that I have some problems with <context>atl.general</context> as it caused some issue with plugin loading and it did't load while starting JIRA
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you could try the jquery aop plugin to hook into whatever function loads the content... I think you need to get your resource contexts working though.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.