Fossil SCM
Call toggleAll() if expandMap['*'] exists, even if its false (for when the expand query string parameter is used).
Commit
8489e2973177503e7b949e4c22aec347fd4892a1
Parent
21426d01b464f27…
1 file changed
+1
-1
+1
-1
| --- src/browse.c | ||
| +++ src/browse.c | ||
| @@ -668,11 +668,11 @@ | ||
| 668 | 668 | @ } |
| 669 | 669 | @ } |
| 670 | 670 | @ |
| 671 | 671 | @ function checkState(){ |
| 672 | 672 | @ expandMap = history.state || {}; |
| 673 | - @ if( expandMap['*'] ) toggleAll(outer_ul, true); | |
| 673 | + @ if( '*' in expandMap ) toggleAll(outer_ul, true); | |
| 674 | 674 | @ for( var id in expandMap ){ |
| 675 | 675 | @ if( id!=='*' ) toggleDir(gebi(id), true); |
| 676 | 676 | @ } |
| 677 | 677 | @ } |
| 678 | 678 | @ |
| 679 | 679 |
| --- 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 |