Fossil SCM

Make the option for synchronous scrolling of side-by-side diff available on the /fdiff page.

florian 2024-09-13 16:54 trunk
Commit 035b29eccc91602a201ac7d61e3018afdbaa568e66c93226db3467f66d99b72b
1 file changed +1
--- src/fossil.diff.js
+++ src/fossil.diff.js
@@ -641,10 +641,11 @@
641641
const potentialParents = [ /* possible parents for the checkbox */
642642
/* Put the most likely pages at the end, as array.pop() is more
643643
efficient than array.shift() (see loop below). */
644644
/* /filedit */ 'body.cpage-fileedit #fileedit-tab-diff-buttons',
645645
/* /wikiedit */ 'body.cpage-wikiedit #wikiedit-tab-diff-buttons',
646
+ /* /fdiff */ 'body.fdiff form div.submenu',
646647
/* /vdiff */ 'body.vdiff form div.submenu',
647648
/* /info, /vinfo */ 'body.vinfo div.sectionmenu.info-changes-menu'
648649
];
649650
while( potentialParents.length ){
650651
if( (eToggleParent = document.querySelector(potentialParents.pop())) ){
651652
--- src/fossil.diff.js
+++ src/fossil.diff.js
@@ -641,10 +641,11 @@
641 const potentialParents = [ /* possible parents for the checkbox */
642 /* Put the most likely pages at the end, as array.pop() is more
643 efficient than array.shift() (see loop below). */
644 /* /filedit */ 'body.cpage-fileedit #fileedit-tab-diff-buttons',
645 /* /wikiedit */ 'body.cpage-wikiedit #wikiedit-tab-diff-buttons',
 
646 /* /vdiff */ 'body.vdiff form div.submenu',
647 /* /info, /vinfo */ 'body.vinfo div.sectionmenu.info-changes-menu'
648 ];
649 while( potentialParents.length ){
650 if( (eToggleParent = document.querySelector(potentialParents.pop())) ){
651
--- src/fossil.diff.js
+++ src/fossil.diff.js
@@ -641,10 +641,11 @@
641 const potentialParents = [ /* possible parents for the checkbox */
642 /* Put the most likely pages at the end, as array.pop() is more
643 efficient than array.shift() (see loop below). */
644 /* /filedit */ 'body.cpage-fileedit #fileedit-tab-diff-buttons',
645 /* /wikiedit */ 'body.cpage-wikiedit #wikiedit-tab-diff-buttons',
646 /* /fdiff */ 'body.fdiff form div.submenu',
647 /* /vdiff */ 'body.vdiff form div.submenu',
648 /* /info, /vinfo */ 'body.vinfo div.sectionmenu.info-changes-menu'
649 ];
650 while( potentialParents.length ){
651 if( (eToggleParent = document.querySelector(potentialParents.pop())) ){
652

Keyboard Shortcuts

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