Ignore:
Timestamp:
Mar 26, 2009, 10:53:48 AM (14 years ago)
Author:
Nicklas Nordborg
Message:

References #1240: Implement "lazy loading" in the generic "item overview"

Disable lazy-loading for nodes that are known to not have any children.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.11-stable/www/common/overview/tree.jsp

    r4847 r4850  
    264264      {
    265265        var id = kv['id'];
    266         var folderIcon = kv['folderIcon'];                               
     266        var folderIcon = kv['folderIcon'];   
     267        var numChildren = kv['numChildren'];                           
    267268        numAdded++;
    268269        var node = JoustMenu.addLazyChildItem(
    269270              parentMenu.index, folderIcon, Main.trimString(kv['title']), 'showInfo(\''+id+'\')',
    270                 '' , id, 'lazyInitSubNode(\''+id+'\')');
     271                '' , id, numChildren == '0' ? '' : 'lazyInitSubNode(\''+id+'\')');
    271272      }
    272273      else
Note: See TracChangeset for help on using the changeset viewer.