My favorites | Sign in
Project Home Downloads
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 84: Persistance is broken
2 people starred this issue and may be notified of changes. Back to list
Status:  Verified
Owner:  moo...@wwwendt.de
Closed:  Apr 2009


 
Project Member Reported by moo...@wwwendt.de, Mar 14, 2009
What steps will reproduce the problem?
1. Open file:///C:/Prj/eclipse-ws/dynatree/doc/sample-persist.html
2. Select, activate, expand some nodes
3. Hit [F5]

--> Status is NOT persisted

Version 0.4.0
Mar 23, 2009
Project Member #1 moo...@wwwendt.de
Seems to be rather a problem with caching of frames.
Status: WontFix
Mar 24, 2009
Project Member #2 moo...@wwwendt.de
Mail from a user:
[...]
This example for show you my problem:

List of index.html:
-------------------
<html>
    <head>
        <meta http-equiv="content-type" content="text/html; charset=UTF-8">
        <title>TEST</title>
        <script src='./jquery/jquery.js' type='text/javascript'></script>
        <script src='./jquery/ui.core.js' type='text/javascript'></script>
        <script src='./jquery/jquery.cookie.js' type='text/javascript'></script>
        <script src='./src/jquery.dynatree.js' type='text/javascript'></script>
        <script src='./src/mytree.js' type='text/javascript'></script>
        <link href='./src/skin/ui.dynatree.css' rel='stylesheet' type='text/css'>
    </head>
    <body>
        <div id="tree">&nbsp;</div>
    </body>
</html>
-------------------

List of mytree.js:
-------------------
$(function(){
  $("#tree").dynatree({
    title: "tree root",
    rootVisible: true,
    persist: true,
    children: [
      {title: "Dir - 2", isFolder: true, key: "1",
      children: [
        {title: "Dir - 2.1", isFolder: true, key: "2", children: [{title:"File -
2.1.1", key: "211"}]},
        {title:"File - 2.1", key: "21"},
        {title:"File - 2.2", key: "22"},
        {title:"File - 2.3", key: "23"}
        ]}
      ]
  });
});
-------------------

If click on Dir-2 after refresh page I have Dir-2 selected but not expanded, if I
press F5 again, Dir-2 selecting and expanding. If  refresh page again so Dir-2
selected but not expanded... And this continue more time.
In cookies writing variables: ui-dynatree-cookie-active, ui-dynatree-cookie-expand.
In cookies "ui-dynatree-cookie-active" contain value key of Dir-1, and in
"ui-dynatree-cookie-expand" or empty or contain value key of Dir-1, after every
refresh value of "ui-dynatree-cookie-expand" changed on 1 or empty.

Next click on Dir-2.1 cookies ui-dynatree-cookie-active, ui-dynatree-cookie-expand
destroyed.

If  I replace dynatree.jquery 0.40.to dynatree.jquery 0.30 all are working.
Status: Accepted
Mar 24, 2009
Project Member #3 moo...@wwwendt.de
(No comment was entered for this change.)
Labels: -Milestone-Release0.4.1 Milestone-Release0.4.2
Mar 24, 2009
Project Member #4 moo...@wwwendt.de
Reproducible:
http://wwwendt.de/tech/dynatree/doc/sample-persist.html

Activate the folder and [F5] toggles expansion

Labels: -Priority-Medium Priority-High
Apr 14, 2009
Project Member #5 moo...@wwwendt.de
One part of the problem was caused by an unexpected behaviour of the $.cookie plugin.
http://plugins.jquery.com/node/7579
This is fixed with r212

Status: Started
Apr 18, 2009
Project Member #6 moo...@wwwendt.de
The other part is caused by the current implementation of persistance:
since all events are re-fired after reloading, an active folder get's an 'expand'
event (expanding it) and another 'activate' event, that will collapse it again, if
clickfolderMode=3.

This is a bit more work:  issue 91 
Apr 18, 2009
Project Member #7 moo...@wwwendt.de
Closing this, so 0.4.2 can be released.
 issue 91  should improve this further, but might cause some migration.
Status: Fixed
Jul 17, 2012
Project Member #8 moo...@wwwendt.de
considered verified
Status: Verified

Powered by Google Project Hosting