Fossil SCM
Copy button comes before the hyperlink in tooltips.
Commit
9a5169f58581cc0d264fd617e8556def4e7a039ab628a3b7d6657265afac13dd
Parent
628fc32dd3f594a…
1 file changed
+2
-1
+2
-1
| --- src/graph.js | ||
| +++ src/graph.js | ||
| @@ -654,11 +654,12 @@ | ||
| 654 | 654 | } |
| 655 | 655 | tooltipObj.style.borderColor = |
| 656 | 656 | tooltipObj.style.color = s.getPropertyValue('color') |
| 657 | 657 | tooltipObj.style.visibility = "hidden" |
| 658 | 658 | tooltipObj.innerHTML = html |
| 659 | - tooltipObj.appendChild(makeCopyButton("tooltip-link",true,0)); | |
| 659 | + tooltipObj.insertBefore(makeCopyButton("tooltip-link",0,0), | |
| 660 | + tooltipObj.childNodes[1]); | |
| 660 | 661 | tooltipObj.style.display = "inline" |
| 661 | 662 | tooltipObj.style.position = "absolute" |
| 662 | 663 | var x = tooltipInfo.posX + 4 + window.pageXOffset |
| 663 | 664 | - absoluteX(tooltipObj.offsetParent) |
| 664 | 665 | tooltipObj.style.left = x+"px" |
| 665 | 666 |
| --- src/graph.js | |
| +++ src/graph.js | |
| @@ -654,11 +654,12 @@ | |
| 654 | } |
| 655 | tooltipObj.style.borderColor = |
| 656 | tooltipObj.style.color = s.getPropertyValue('color') |
| 657 | tooltipObj.style.visibility = "hidden" |
| 658 | tooltipObj.innerHTML = html |
| 659 | tooltipObj.appendChild(makeCopyButton("tooltip-link",true,0)); |
| 660 | tooltipObj.style.display = "inline" |
| 661 | tooltipObj.style.position = "absolute" |
| 662 | var x = tooltipInfo.posX + 4 + window.pageXOffset |
| 663 | - absoluteX(tooltipObj.offsetParent) |
| 664 | tooltipObj.style.left = x+"px" |
| 665 |
| --- src/graph.js | |
| +++ src/graph.js | |
| @@ -654,11 +654,12 @@ | |
| 654 | } |
| 655 | tooltipObj.style.borderColor = |
| 656 | tooltipObj.style.color = s.getPropertyValue('color') |
| 657 | tooltipObj.style.visibility = "hidden" |
| 658 | tooltipObj.innerHTML = html |
| 659 | tooltipObj.insertBefore(makeCopyButton("tooltip-link",0,0), |
| 660 | tooltipObj.childNodes[1]); |
| 661 | tooltipObj.style.display = "inline" |
| 662 | tooltipObj.style.position = "absolute" |
| 663 | var x = tooltipInfo.posX + 4 + window.pageXOffset |
| 664 | - absoluteX(tooltipObj.offsetParent) |
| 665 | tooltipObj.style.left = x+"px" |
| 666 |