Fossil SCM

More consistent naming of variables in the newly added Javascript part.

florian 2019-05-29 12:55 tooltip-copyhash
Commit c887a1bb007457d2c4d92ed2b0630ba9e457b2f9c85a12a3effe2737fef1fd66
1 file changed +11 -11
+11 -11
--- src/graph.js
+++ src/graph.js
@@ -757,21 +757,21 @@
757757
**
758758
** Note: <idTarget> can be set statically or dynamically, this function does not
759759
** overwrite "data-copytarget" attributes with empty values.
760760
*/
761761
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;
773773
}
774774
/* The onclick handler for the "Copy Text" button. */
775775
var lockCopyText = false;
776776
function clickCopyButton(e){
777777
e.preventDefault(); /* Mandatory for <a> and <button>. */
778778
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button