Opened 5 years ago

Closed 5 years ago

#17795 closed enhancement (patchwelcome)

enable set cookie path or options for dijit tree in persistense mode

Reported by: lordlamer Owned by:
Priority: undecided Milestone: tbd
Component: Dijit Version: 1.9.3
Keywords: Cc:
Blocked By: Blocking:

Description

Please make it possible to modify the cookie options that are used by dijit/Tree if it is used in persistence mode. I am using the same tree on a page with a domain and path like this: domain.tld/path1/ domain.tld/path2/

Dijit Tree will create two cookies with different path option. I need to set the cookie path to "/". but that is not possible at the moment.

I think it makes also sense to allow modify other settings like secure.

Change History (1)

comment:1 Changed 5 years ago by bill

Resolution: patchwelcome
Status: newclosed

Hmm, there are a number of widgets that do persistence, so it seems like if we update Tree then we should update all of them. Actually, I wish we hadn't implemented the persistence feature at all, but rather just told the application to save/restore state. Unfortunately with Tree IIRC there's no public API to get or set the opened nodes.

I'm going to mark this as patchwelcome. If you (or someone) wants to make a patch for this (submitted as a github pull request) then I'll be happy to take a look. But I don't think I'll have time to develop a fix myself.

Note: See TracTickets for help on using tickets.