Fossil

Check-in [3bdbc040]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Initialize expandMap variable
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | tree-view-enhancements
Files: files | file ages | folders
SHA1:3bdbc0408f559e736e262be2c756129b1c27369b
User & Date: joel 2014-01-14 19:46:32
Context
2014-01-15
00:15
Use history API instead of sessionStorage. check-in: 434e4538 user: joel tags: tree-view-enhancements
2014-01-14
19:46
Initialize expandMap variable check-in: 3bdbc040 user: joel tags: tree-view-enhancements
15:33
Persist expand/collapse state of tree-view directories in all modern browsers. check-in: cd554eb6 user: joel tags: tree-view-enhancements
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/browse.c.

664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
  @   }
  @   var display = expandMap['*'] ? 'block' : 'none';
  @   for( var i=0; lists[i]; i++ ){
  @     lists[i].style.display = display;
  @   }
  @ }
  @
  @ var expandMap;
  @ var outer_ul = document.querySelector('.filetree > ul');
  @ var subdir = outer_ul.querySelector('.subdir');
  @ outer_ul.onclick = function(e){
  @   var a = e.target;
  @   if( a.nodeName!='A' ) return true;
  @   if( a.parentNode==subdir ){
  @     toggleAll(outer_ul);







|







664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
  @   }
  @   var display = expandMap['*'] ? 'block' : 'none';
  @   for( var i=0; lists[i]; i++ ){
  @     lists[i].style.display = display;
  @   }
  @ }
  @
  @ var expandMap = {};
  @ var outer_ul = document.querySelector('.filetree > ul');
  @ var subdir = outer_ul.querySelector('.subdir');
  @ outer_ul.onclick = function(e){
  @   var a = e.target;
  @   if( a.nodeName!='A' ) return true;
  @   if( a.parentNode==subdir ){
  @     toggleAll(outer_ul);