Fossil SCM
More consistent naming of variables in the newly added Javascript part.
Commit
c887a1bb007457d2c4d92ed2b0630ba9e457b2f9c85a12a3effe2737fef1fd66
Parent
3783706f674ae78…
1 file changed
+11
-11
+11
-11
| --- src/graph.js | ||
| +++ src/graph.js | ||
| @@ -757,21 +757,21 @@ | ||
| 757 | 757 | ** |
| 758 | 758 | ** Note: <idTarget> can be set statically or dynamically, this function does not |
| 759 | 759 | ** overwrite "data-copytarget" attributes with empty values. |
| 760 | 760 | */ |
| 761 | 761 | function makeCopyButton(idButton,idTarget){ |
| 762 | - var button = document.getElementById(idButton); | |
| 763 | - if( !button ){ | |
| 764 | - button = document.createElement("span"); | |
| 765 | - button.className = "copy-button"; | |
| 766 | - button.id = idButton; | |
| 767 | - } | |
| 768 | - button.style.transition = ""; | |
| 769 | - button.style.opacity = 1; | |
| 770 | - if( idTarget ) button.setAttribute("data-copytarget",idTarget); | |
| 771 | - button.onclick = clickCopyButton; | |
| 772 | - return button; | |
| 762 | + var elButton = document.getElementById(idButton); | |
| 763 | + if( !elButton ){ | |
| 764 | + elButton = document.createElement("span"); | |
| 765 | + elButton.className = "copy-button"; | |
| 766 | + elButton.id = idButton; | |
| 767 | + } | |
| 768 | + elButton.style.transition = ""; | |
| 769 | + elButton.style.opacity = 1; | |
| 770 | + if( idTarget ) elButton.setAttribute("data-copytarget",idTarget); | |
| 771 | + elButton.onclick = clickCopyButton; | |
| 772 | + return elButton; | |
| 773 | 773 | } |
| 774 | 774 | /* The onclick handler for the "Copy Text" button. */ |
| 775 | 775 | var lockCopyText = false; |
| 776 | 776 | function clickCopyButton(e){ |
| 777 | 777 | e.preventDefault(); /* Mandatory for <a> and <button>. */ |
| 778 | 778 |
| --- src/graph.js | |
| +++ src/graph.js | |
| @@ -757,21 +757,21 @@ | |
| 757 | ** |
| 758 | ** Note: <idTarget> can be set statically or dynamically, this function does not |
| 759 | ** overwrite "data-copytarget" attributes with empty values. |
| 760 | */ |
| 761 | function makeCopyButton(idButton,idTarget){ |
| 762 | var button = document.getElementById(idButton); |
| 763 | if( !button ){ |
| 764 | button = document.createElement("span"); |
| 765 | button.className = "copy-button"; |
| 766 | button.id = idButton; |
| 767 | } |
| 768 | button.style.transition = ""; |
| 769 | button.style.opacity = 1; |
| 770 | if( idTarget ) button.setAttribute("data-copytarget",idTarget); |
| 771 | button.onclick = clickCopyButton; |
| 772 | return button; |
| 773 | } |
| 774 | /* The onclick handler for the "Copy Text" button. */ |
| 775 | var lockCopyText = false; |
| 776 | function clickCopyButton(e){ |
| 777 | e.preventDefault(); /* Mandatory for <a> and <button>. */ |
| 778 |
| --- src/graph.js | |
| +++ src/graph.js | |
| @@ -757,21 +757,21 @@ | |
| 757 | ** |
| 758 | ** Note: <idTarget> can be set statically or dynamically, this function does not |
| 759 | ** overwrite "data-copytarget" attributes with empty values. |
| 760 | */ |
| 761 | function makeCopyButton(idButton,idTarget){ |
| 762 | var elButton = document.getElementById(idButton); |
| 763 | if( !elButton ){ |
| 764 | elButton = document.createElement("span"); |
| 765 | elButton.className = "copy-button"; |
| 766 | elButton.id = idButton; |
| 767 | } |
| 768 | elButton.style.transition = ""; |
| 769 | elButton.style.opacity = 1; |
| 770 | if( idTarget ) elButton.setAttribute("data-copytarget",idTarget); |
| 771 | elButton.onclick = clickCopyButton; |
| 772 | return elButton; |
| 773 | } |
| 774 | /* The onclick handler for the "Copy Text" button. */ |
| 775 | var lockCopyText = false; |
| 776 | function clickCopyButton(e){ |
| 777 | e.preventDefault(); /* Mandatory for <a> and <button>. */ |
| 778 |