Bug Tracker

Modify

Ticket #3122 (closed bug: invalid)

Opened 5 years ago

Last modified 4 years ago

[treeview] enhancement patch

Reported by: malte Owned by:
Priority: major Milestone: 1.3
Component: plugin Version: 1.2.6
Keywords: Cc:
Blocking: Blocked by:

Description

Here is a patch that adds a few (for me) very important enhancements:

  1. If a menu item has 'class="open"' or 'class="closed"' set, treeview will no longer let the persistent state from a cookie override and erroneously close or open something that should not be closed or open.
  1. Treeviews cookies would not set a path, and that results in the cookie path defaulting to whatever path the browser currently was on. This screws up the persistence when you need it to go to different paths on your site. I have added the option 'cookiePath' to treeview, so you can force the path to '/' or whatever other path you might want to solve this issue. I have also made the default option '/'.
  1. I have added the option 'cookieExpires' for those of us that wants persistence for longer than just the session. I set this option to default to 0. Personally I set it to 365.

Attachments

alec.patch Download (632 bytes) - added by malte 5 years ago.
this patch includes all 3 enhancements

Change History

Changed 5 years ago by malte

this patch includes all 3 enhancements

comment:1 Changed 4 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to invalid

This is not a jQuery core bug. Please report plugin bugs to the plugin's author, or ask on the jQuery forums. jQuery UI bugs should be reported on the UI bug tracker,  http://dev.jqueryui.com .

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.