Fossil SCM

Slight simplification of [7f2b3a2d987a]. Works the same but with less code.

stephan 2025-02-12 14:55 trunk
Commit 88d82553fc3b3649096a77ae422648450ff3cea76aa517f4336f1135f6af510e
1 file changed +1 -2
--- src/fossil.diff.js
+++ src/fossil.diff.js
@@ -64,12 +64,11 @@
6464
/* Extend the toggle click zone to all of the non-hyperlink
6565
elements in the left of this area (filenames and hashes). */
6666
sib.firstElementChild.addEventListener('click', (event)=>{
6767
if( event.target===sib.firstElementChild ){
6868
/* Don't respond to clicks bubbling via hyperlink children */
69
- ckbox.checked = !ckbox.checked;
70
- ckbox.dispatchEvent(new Event('change'));
69
+ ckbox.click();;
7170
}
7271
}, false);
7372
};
7473
if( !document.querySelector('body.fdiff') ){
7574
/* Don't show the diff toggle button for /fdiff because it only
7675
--- src/fossil.diff.js
+++ src/fossil.diff.js
@@ -64,12 +64,11 @@
64 /* Extend the toggle click zone to all of the non-hyperlink
65 elements in the left of this area (filenames and hashes). */
66 sib.firstElementChild.addEventListener('click', (event)=>{
67 if( event.target===sib.firstElementChild ){
68 /* Don't respond to clicks bubbling via hyperlink children */
69 ckbox.checked = !ckbox.checked;
70 ckbox.dispatchEvent(new Event('change'));
71 }
72 }, false);
73 };
74 if( !document.querySelector('body.fdiff') ){
75 /* Don't show the diff toggle button for /fdiff because it only
76
--- src/fossil.diff.js
+++ src/fossil.diff.js
@@ -64,12 +64,11 @@
64 /* Extend the toggle click zone to all of the non-hyperlink
65 elements in the left of this area (filenames and hashes). */
66 sib.firstElementChild.addEventListener('click', (event)=>{
67 if( event.target===sib.firstElementChild ){
68 /* Don't respond to clicks bubbling via hyperlink children */
69 ckbox.click();;
 
70 }
71 }, false);
72 };
73 if( !document.querySelector('body.fdiff') ){
74 /* Don't show the diff toggle button for /fdiff because it only
75

Keyboard Shortcuts

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