Christopher Lenz wrote: > On 07.01.2008, at 15:29, Christian Boos wrote: > >> I've got a quick question about folding.js (actually targeted at >> Christopher who introduced that code). I can't really tell what the >> <a> >> wrapping and the fragId business is all about: >> > > The fragid is supposed to put the expanded state in the URL, so for > example when you submit the form on the plugins page (IIRC), or just > use the back/forward buttons of the browser, the most recently > expanded item doesn't collapse away. >
Ah yes, keep the item expanded after a POST, that was it. Now, I just tried some changes to also relocate the window location appropriately after the POST, but couldn't make it work properly, so I'll leave things as they are. >> http://trac.edgewall.org/browser/trunk/trac/htdocs/js/folding.js >> >> It seems everything works fine if we would use a <span> instead, e.g. >> > > Is there any problem with using an <a>? > Well, in that modified version, an <a> with no attribute seemed weird, although well-formed it seems. Thanks for the clarification. -- Christian --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Trac Development" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/trac-dev?hl=en -~----------~----~----~----~------~----~------~--~---
