quicktabs

Reload a quicktab on second click

There are some old topics on drupal.org about this subject, but they apply to older versions of QT (D6) or just didn't work for my situation.

I found it easy to force an ajax Quicktab to reload it's content on every click, but to do it only when you click the currently active tab again, I had to write my own magic.

The good news is, it's actually very simple, and you only need to add some new JS to the page (no patching / hacking / heavy module required!).

This JS will do it, (I do it in a Drupal.behaviors.xyz attach):