Fossil SCM
Fix use of window.getComputedStyle() function for IE8. Same fix as done in [5885241f52c6182e] for timeline.
Commit
de0ae9271f6f48eea5290a1a2f112740146a7687
Parent
f61958b183db741…
1 file changed
+2
-1
+2
-1
| --- src/browse.c | ||
| +++ src/browse.c | ||
| @@ -637,11 +637,12 @@ | ||
| 637 | 637 | } |
| 638 | 638 | @ </ul> |
| 639 | 639 | @ </ul></div> |
| 640 | 640 | @ <script>(function(){ |
| 641 | 641 | @ function isExpanded(ul){ |
| 642 | - @ var display = window.getComputedStyle(ul).getPropertyValue('display'); | |
| 642 | + @ var ulStyle = window.getComputedStyle && window.getComputedStyle(ul,null); | |
| 643 | + @ var display = (ulStyle && ulStyle.getPropertyValue('display')) || 'none'; | |
| 643 | 644 | @ return display!='none'; |
| 644 | 645 | @ } |
| 645 | 646 | @ |
| 646 | 647 | @ function toggleDir(ul, useInitValue){ |
| 647 | 648 | @ if( !useInitValue ){ |
| 648 | 649 |
| --- src/browse.c | |
| +++ src/browse.c | |
| @@ -637,11 +637,12 @@ | |
| 637 | } |
| 638 | @ </ul> |
| 639 | @ </ul></div> |
| 640 | @ <script>(function(){ |
| 641 | @ function isExpanded(ul){ |
| 642 | @ var display = window.getComputedStyle(ul).getPropertyValue('display'); |
| 643 | @ return display!='none'; |
| 644 | @ } |
| 645 | @ |
| 646 | @ function toggleDir(ul, useInitValue){ |
| 647 | @ if( !useInitValue ){ |
| 648 |
| --- src/browse.c | |
| +++ src/browse.c | |
| @@ -637,11 +637,12 @@ | |
| 637 | } |
| 638 | @ </ul> |
| 639 | @ </ul></div> |
| 640 | @ <script>(function(){ |
| 641 | @ function isExpanded(ul){ |
| 642 | @ var ulStyle = window.getComputedStyle && window.getComputedStyle(ul,null); |
| 643 | @ var display = (ulStyle && ulStyle.getPropertyValue('display')) || 'none'; |
| 644 | @ return display!='none'; |
| 645 | @ } |
| 646 | @ |
| 647 | @ function toggleDir(ul, useInitValue){ |
| 648 | @ if( !useInitValue ){ |
| 649 |