Skip to content
This repository has been archived by the owner on Sep 29, 2019. It is now read-only.

if cookie enabled and not exist, always collapsed = true #8

Open
lynx1983 opened this issue Feb 25, 2011 · 0 comments
Open

if cookie enabled and not exist, always collapsed = true #8

lynx1983 opened this issue Feb 25, 2011 · 0 comments

Comments

@lynx1983
Copy link

My solution:


if (o.cookie) {
   var saved_state = self._cookie();
   if (saved_state!=null) {
       if(saved_state==1) {
           o.collapsed = true;
       } else {
           o.collapsed = false;
       }
    }
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant