• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Although cookies are set correctly the twisty state isnt initialized correctly. Only the first twisty on a page is initialized accordingly.

What's this "found" variable good for? It prevented the other twisties of been initialized. ... removed it. But if it served any deeper purpose, which I dought, then reopen this bug and add a better fix.

Fixed in SVN 7686. -- MD.

That happens when you don't document your code and a few months later don't remember what the code actually was supposed to do.

So I tried to make the code faster and introduced a bug. The original code was better.

Each Twisty has 2 buttons/links: show and hide. Each have the twistyTrigger css class. But there is only one toggle element (the content to hide/show). And its cookie should be set/read only once.

I've made the correction with:

var twistId = e.parentNode.id.slice(0,-4);
if (twistId == oldId) continue;
oldId = twistId;

SVN 7687.

BTW what was the intention of var twistIds = [];? twistIds where pushed onto this array but not used, so I deleted it.


Summary twisties dont obey cookies
ReportedBy MichaelDaum

SVN Range Tue, 29 Nov 2005 build 7670
AppliesTo Extension
Component TwistyPlugin
Priority Urgent
CurrentState Closed

Checkins 7686 7687
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2005-11-30 - ArthurClemens
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback