Hi all,

I'm grouping some fields with horizontal tabs and all works fine, but now I want to disable javascript that creates tabs on mobile devices, so all these tabs will shows simply one under the other.

Suppose I already have my javascript sniffer that returns if the device is a mobile or not (or if its screen is under certain widths) what is the js code that blocks jquery "tabifing" operations on page load?

Thank you very much for any help

Comments

nils.destoop’s picture

Version: 7.x-2.x-dev » 7.x-1.x-dev
Status: Active » Fixed

The only way is overwriting Drupal.behaviors.horizontalTabs (field_group/horizontal-tabs/horizontal-tabs.js) in an own javascript file. You can add the checks for mobile in the attach behavior.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.