Fire an event on tab change / init

Description

This story belongs to all Navitab Macros and is needed for Seibert//Media

Every time a tab is loaded, the event bitvoodoo/navitabs/tab/opened should be fired with the id as payload. The event has to look exactly this this:

  • The event is fired with AJS.trigger("bitvoodoo/navitabs/tab/opened", payload);

  • The event needs to be fired every time the tab is changed

  • The event is fired at the moment the page is loaded for the active tab

Currently, we have in the code multiple times the calls AJS.Tabs.change -> please consolidate these calls with a function changeTab() where you call the tab change and fire that event.

Environment

None

Assignee

sysadmin+backbone

Reporter

sysadmin+backbone

Labels

None

Epic/Theme

None

Effort

None

Fix versions

Priority

Normal
Configure