Changes between Initial Version and Version 2 of Ticket #3613


Ignore:
Timestamp:
Nov 30, 2008, 4:51:28 PM (11 years ago)
Author:
Jörn Zaefferer
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #3613

    • Property Milestone changed from TBD to 1.next
  • Ticket #3613 – Description

    initial v2  
    2525
    2626This should be integrated into the plugin, with the option to enable it (requires cookie plugin) and the option to customize the cookie settings, eg. for a different path.
     27
     28Until the change-option is added, that callback must be used like this (currently untested):
     29
     30{{{{
     31$("...").accordion(...).bind("accordionchange", function(event, ui) {
     32                var index = $(this).find("h3").index ( ui.newHeader[0] );
     33                $.cookie("accordion", index, {
     34                        path: "/"
     35                });
     36});
     37}}}