Fossil SCM

Change [3710202914] to call the function to load the diff-related JS code even for blocked diffs. By default, the loader function is already a no-op if diffs are blocked, so the behavior intended by [3710202914] is retained. But other branches are patching the loader function because they rely on the JS code even if the diffs are hidden.

florian 2025-08-21 12:01 trunk
Commit 171127fd14cf63becab03d50c294c5285691321969e2a92ab07660a3085f74ce
1 file changed +1 -1
+1 -1
--- src/info.c
+++ src/info.c
@@ -1235,12 +1235,12 @@
12351235
@ document.getElementById('changes_section').textContent = 'Changes ' +
12361236
@ '(%d(g.diffCnt[0]) file' + (%d(g.diffCnt[0])===1 ? '' : 's') + ': ' +
12371237
@ '+%d(g.diffCnt[1]) ' +
12381238
@ '−%d(g.diffCnt[2]))'
12391239
@ </script>
1240
- append_diff_javascript(diffType);
12411240
}
1241
+ append_diff_javascript(diffType);
12421242
style_finish_page();
12431243
}
12441244
12451245
/*
12461246
** WEBPAGE: winfo
12471247
--- src/info.c
+++ src/info.c
@@ -1235,12 +1235,12 @@
1235 @ document.getElementById('changes_section').textContent = 'Changes ' +
1236 @ '(%d(g.diffCnt[0]) file' + (%d(g.diffCnt[0])===1 ? '' : 's') + ': ' +
1237 @ '+%d(g.diffCnt[1]) ' +
1238 @ '−%d(g.diffCnt[2]))'
1239 @ </script>
1240 append_diff_javascript(diffType);
1241 }
 
1242 style_finish_page();
1243 }
1244
1245 /*
1246 ** WEBPAGE: winfo
1247
--- src/info.c
+++ src/info.c
@@ -1235,12 +1235,12 @@
1235 @ document.getElementById('changes_section').textContent = 'Changes ' +
1236 @ '(%d(g.diffCnt[0]) file' + (%d(g.diffCnt[0])===1 ? '' : 's') + ': ' +
1237 @ '+%d(g.diffCnt[1]) ' +
1238 @ '−%d(g.diffCnt[2]))'
1239 @ </script>
 
1240 }
1241 append_diff_javascript(diffType);
1242 style_finish_page();
1243 }
1244
1245 /*
1246 ** WEBPAGE: winfo
1247

Keyboard Shortcuts

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