Fossil SCM

Call toggleAll() if expandMap['*'] exists, even if its false (for when the expand query string parameter is used).

joel 2014-01-17 09:07 tree-view-work
Commit 8489e2973177503e7b949e4c22aec347fd4892a1
1 file changed +1 -1
+1 -1
--- src/browse.c
+++ src/browse.c
@@ -668,11 +668,11 @@
668668
@ }
669669
@ }
670670
@
671671
@ function checkState(){
672672
@ expandMap = history.state || {};
673
- @ if( expandMap['*'] ) toggleAll(outer_ul, true);
673
+ @ if( '*' in expandMap ) toggleAll(outer_ul, true);
674674
@ for( var id in expandMap ){
675675
@ if( id!=='*' ) toggleDir(gebi(id), true);
676676
@ }
677677
@ }
678678
@
679679
--- src/browse.c
+++ src/browse.c
@@ -668,11 +668,11 @@
668 @ }
669 @ }
670 @
671 @ function checkState(){
672 @ expandMap = history.state || {};
673 @ if( expandMap['*'] ) toggleAll(outer_ul, true);
674 @ for( var id in expandMap ){
675 @ if( id!=='*' ) toggleDir(gebi(id), true);
676 @ }
677 @ }
678 @
679
--- src/browse.c
+++ src/browse.c
@@ -668,11 +668,11 @@
668 @ }
669 @ }
670 @
671 @ function checkState(){
672 @ expandMap = history.state || {};
673 @ if( '*' in expandMap ) toggleAll(outer_ul, true);
674 @ for( var id in expandMap ){
675 @ if( id!=='*' ) toggleDir(gebi(id), true);
676 @ }
677 @ }
678 @
679

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button