Changeset 4797


Ignore:
Timestamp:
Mar 3, 2009, 8:42:45 AM (14 years ago)
Author:
Nicklas Nordborg
Message:

Fixes #1245: Add support for lazy loading of nodes in JoustTree?

Made it less likely for double-clicks to load the subdirectories twice.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/include/scripts/newjoust.js

    r4794 r4797  
    188188    if (menuItem.lazyInit)
    189189    {
    190       var result = eval(menuItem.lazyInit);
     190      var lazyInit = menuItem.lazyInit;
    191191      menuItem.lazyInit = null;
     192      var result = eval(lazyInit);
    192193      if (result)
    193194      {
     
    198199    }
    199200    menuItem.isOpen = !menuItem.isOpen;
    200     if (menuItem.isOpen)
     201    if (menuItem.isOpen && menuItem.firstChildIndex != -1)
    201202    {
    202203      Main.show('children'+menuItem.index);
Note: See TracChangeset for help on using the changeset viewer.