Fossil SCM
Slight simplification of [7f2b3a2d987a]. Works the same but with less code.
Commit
88d82553fc3b3649096a77ae422648450ff3cea76aa517f4336f1135f6af510e
Parent
52095820d8d629d…
1 file changed
+1
-2
+1
-2
| --- src/fossil.diff.js | ||
| +++ src/fossil.diff.js | ||
| @@ -64,12 +64,11 @@ | ||
| 64 | 64 | /* Extend the toggle click zone to all of the non-hyperlink |
| 65 | 65 | elements in the left of this area (filenames and hashes). */ |
| 66 | 66 | sib.firstElementChild.addEventListener('click', (event)=>{ |
| 67 | 67 | if( event.target===sib.firstElementChild ){ |
| 68 | 68 | /* Don't respond to clicks bubbling via hyperlink children */ |
| 69 | - ckbox.checked = !ckbox.checked; | |
| 70 | - ckbox.dispatchEvent(new Event('change')); | |
| 69 | + ckbox.click();; | |
| 71 | 70 | } |
| 72 | 71 | }, false); |
| 73 | 72 | }; |
| 74 | 73 | if( !document.querySelector('body.fdiff') ){ |
| 75 | 74 | /* Don't show the diff toggle button for /fdiff because it only |
| 76 | 75 |
| --- 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 |