I have managed how to get an event when switching between tabs.
https://gist.github.com/anonymous/db9d6619fd6aca557e31
But I need to trigger a function when clicking on the active / current tab. Nothing happends and can't find an event that might match what I am trying to do.
Any ideas on how to achieve this?