Fossil SCM
When expanding the details on the /timeline in the Compact or Simple view, change the "..." into "←" and keep it visible, so that the expanded details can be toggled back off.
Commit
2d89ae650ea94e0c1e7be9ca2b42678563c2fac9caa47b271c9ce4f8ee3cf0ce
Parent
c9c17a81a9e95d4…
1 file changed
+4
-4
+4
-4
| --- src/graph.js | ||
| +++ src/graph.js | ||
| @@ -726,15 +726,15 @@ | ||
| 726 | 726 | function toggleDetail(){ |
| 727 | 727 | var id = parseInt(this.getAttribute('data-id')) |
| 728 | 728 | var x = document.getElementById("detail-"+id); |
| 729 | 729 | if( x.style.display=="inline" ){ |
| 730 | 730 | x.style.display="none"; |
| 731 | - changeDisplayById("ellipsis-"+id,"inline"); | |
| 731 | + document.getElementById("ellipsis-"+id).textContent = "..."; | |
| 732 | 732 | changeDisplayById("links-"+id,"none"); |
| 733 | 733 | }else{ |
| 734 | 734 | x.style.display="inline"; |
| 735 | - changeDisplayById("ellipsis-"+id,"none"); | |
| 735 | + document.getElementById("ellipsis-"+id).textContent = "←"; | |
| 736 | 736 | changeDisplayById("links-"+id,"inline"); |
| 737 | 737 | } |
| 738 | 738 | checkHeight(); |
| 739 | 739 | } |
| 740 | 740 | function scrollToSelected(){ |
| @@ -764,12 +764,12 @@ | ||
| 764 | 764 | } |
| 765 | 765 | if( tx.scrollToSelect ){ |
| 766 | 766 | scrollToSelected(); |
| 767 | 767 | } |
| 768 | 768 | |
| 769 | - /* Set the onclick= attributes for elements of the "Compact" display | |
| 770 | - ** mode so that clicking turns the details on and off. | |
| 769 | + /* Set the onclick= attributes for elements of the "Compact" and | |
| 770 | + ** "Simple" views so that clicking turns the details on and off. | |
| 771 | 771 | */ |
| 772 | 772 | var lx = topObj.getElementsByClassName('timelineEllipsis'); |
| 773 | 773 | var i; |
| 774 | 774 | for(i=0; i<lx.length; i++){ |
| 775 | 775 | if( lx[i].hasAttribute('data-id') ) lx[i].onclick = toggleDetail; |
| 776 | 776 |
| --- src/graph.js | |
| +++ src/graph.js | |
| @@ -726,15 +726,15 @@ | |
| 726 | function toggleDetail(){ |
| 727 | var id = parseInt(this.getAttribute('data-id')) |
| 728 | var x = document.getElementById("detail-"+id); |
| 729 | if( x.style.display=="inline" ){ |
| 730 | x.style.display="none"; |
| 731 | changeDisplayById("ellipsis-"+id,"inline"); |
| 732 | changeDisplayById("links-"+id,"none"); |
| 733 | }else{ |
| 734 | x.style.display="inline"; |
| 735 | changeDisplayById("ellipsis-"+id,"none"); |
| 736 | changeDisplayById("links-"+id,"inline"); |
| 737 | } |
| 738 | checkHeight(); |
| 739 | } |
| 740 | function scrollToSelected(){ |
| @@ -764,12 +764,12 @@ | |
| 764 | } |
| 765 | if( tx.scrollToSelect ){ |
| 766 | scrollToSelected(); |
| 767 | } |
| 768 | |
| 769 | /* Set the onclick= attributes for elements of the "Compact" display |
| 770 | ** mode so that clicking turns the details on and off. |
| 771 | */ |
| 772 | var lx = topObj.getElementsByClassName('timelineEllipsis'); |
| 773 | var i; |
| 774 | for(i=0; i<lx.length; i++){ |
| 775 | if( lx[i].hasAttribute('data-id') ) lx[i].onclick = toggleDetail; |
| 776 |
| --- src/graph.js | |
| +++ src/graph.js | |
| @@ -726,15 +726,15 @@ | |
| 726 | function toggleDetail(){ |
| 727 | var id = parseInt(this.getAttribute('data-id')) |
| 728 | var x = document.getElementById("detail-"+id); |
| 729 | if( x.style.display=="inline" ){ |
| 730 | x.style.display="none"; |
| 731 | document.getElementById("ellipsis-"+id).textContent = "..."; |
| 732 | changeDisplayById("links-"+id,"none"); |
| 733 | }else{ |
| 734 | x.style.display="inline"; |
| 735 | document.getElementById("ellipsis-"+id).textContent = "←"; |
| 736 | changeDisplayById("links-"+id,"inline"); |
| 737 | } |
| 738 | checkHeight(); |
| 739 | } |
| 740 | function scrollToSelected(){ |
| @@ -764,12 +764,12 @@ | |
| 764 | } |
| 765 | if( tx.scrollToSelect ){ |
| 766 | scrollToSelected(); |
| 767 | } |
| 768 | |
| 769 | /* Set the onclick= attributes for elements of the "Compact" and |
| 770 | ** "Simple" views so that clicking turns the details on and off. |
| 771 | */ |
| 772 | var lx = topObj.getElementsByClassName('timelineEllipsis'); |
| 773 | var i; |
| 774 | for(i=0; i<lx.length; i++){ |
| 775 | if( lx[i].hasAttribute('data-id') ) lx[i].onclick = toggleDetail; |
| 776 |