Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi there,
i've read, that the ui.tabs.js has a cookie functions build in. What is to do, the use this function? Add/Change something in the tabs.js?
Could someone give me a hint. I like to understand what happens between the .module and the js-files.
Cheers Kai
//getter
var cookie = $('.selector').tabs('option', 'cookie');
//setter
$('.selector').tabs('option', 'cookie', { expires: 30 });
Comments
Comment #1
Apfel007 CreditAttribution: Apfel007 commentedHI there,
could someone help me to figure out that..
I add this to tabs.js
and that to the tabs.module
how can I now set the active-class to the id, the cookie saved? This this is the right function I think.. Thanks for helping me
Comment #2
nedjoI'd welcome a patch to add conditional cookie support.