Fossil SCM

Fix a comment typo in the captcha generator. Extend the graph lines to the bottom of the timeline even if the last few entries on timeline are tickets or wiki edits instead of checkins.

drh 2010-08-16 10:52 trunk
Commit 76201a088b2c0d40fc591e438f00f9c6f1ff6122
2 files changed +1 -1 +3 -2
+1 -1
--- src/captcha.c
+++ src/captcha.c
@@ -399,11 +399,11 @@
399399
}
400400
}
401401
402402
/*
403403
** Compute a seed value for a captcha. The seed is public and is sent
404
-** has a hidden parameter with the page that contains the captcha. Knowledge
404
+** as a hidden parameter with the page that contains the captcha. Knowledge
405405
** of the seed is insufficient for determining the captcha without additional
406406
** information held only on the server and never revealed.
407407
*/
408408
unsigned int captcha_seed(void){
409409
unsigned int x;
410410
--- src/captcha.c
+++ src/captcha.c
@@ -399,11 +399,11 @@
399 }
400 }
401
402 /*
403 ** Compute a seed value for a captcha. The seed is public and is sent
404 ** has a hidden parameter with the page that contains the captcha. Knowledge
405 ** of the seed is insufficient for determining the captcha without additional
406 ** information held only on the server and never revealed.
407 */
408 unsigned int captcha_seed(void){
409 unsigned int x;
410
--- src/captcha.c
+++ src/captcha.c
@@ -399,11 +399,11 @@
399 }
400 }
401
402 /*
403 ** Compute a seed value for a captcha. The seed is public and is sent
404 ** as a hidden parameter with the page that contains the captcha. Knowledge
405 ** of the seed is insufficient for determining the captcha without additional
406 ** information held only on the server and never revealed.
407 */
408 unsigned int captcha_seed(void){
409 unsigned int x;
410
+3 -2
--- src/timeline.c
+++ src/timeline.c
@@ -320,11 +320,12 @@
320320
graph_finish(pGraph, (tmFlags & TIMELINE_DISJOINT)!=0);
321321
if( pGraph->nErr ){
322322
graph_free(pGraph);
323323
pGraph = 0;
324324
}else{
325
- @ <tr><td><td><div style="width:%d(pGraph->mxRail*20+30)px;"></div>
325
+ @ <tr><td><td>
326
+ @ <div id="grbtm" style="width:%d(pGraph->mxRail*20+30)px;"></div>
326327
}
327328
}
328329
@ </table>
329330
timeline_output_graph_javascript(pGraph);
330331
}
@@ -482,11 +483,11 @@
482483
@ var width = nrail*20;
483484
@ for(var i in rowinfo){
484485
@ rowinfo[i].y = absoluteY(rowinfo[i].id) + 10 - canvasY;
485486
@ rowinfo[i].x = left + rowinfo[i].r*20;
486487
@ }
487
- @ var btm = rowinfo[rowinfo.length-1].y + 20;
488
+ @ var btm = absoluteY("grbtm") + 10 - canvasY;
488489
@ if( btm<32768 ){
489490
@ canvasDiv.innerHTML = '<canvas id="timeline-canvas" '+
490491
@ 'style="position:absolute;left:'+(left-5)+'px;"' +
491492
@ ' width="'+width+'" height="'+btm+'"></canvas>';
492493
@ realCanvas = document.getElementById('timeline-canvas');
493494
--- src/timeline.c
+++ src/timeline.c
@@ -320,11 +320,12 @@
320 graph_finish(pGraph, (tmFlags & TIMELINE_DISJOINT)!=0);
321 if( pGraph->nErr ){
322 graph_free(pGraph);
323 pGraph = 0;
324 }else{
325 @ <tr><td><td><div style="width:%d(pGraph->mxRail*20+30)px;"></div>
 
326 }
327 }
328 @ </table>
329 timeline_output_graph_javascript(pGraph);
330 }
@@ -482,11 +483,11 @@
482 @ var width = nrail*20;
483 @ for(var i in rowinfo){
484 @ rowinfo[i].y = absoluteY(rowinfo[i].id) + 10 - canvasY;
485 @ rowinfo[i].x = left + rowinfo[i].r*20;
486 @ }
487 @ var btm = rowinfo[rowinfo.length-1].y + 20;
488 @ if( btm<32768 ){
489 @ canvasDiv.innerHTML = '<canvas id="timeline-canvas" '+
490 @ 'style="position:absolute;left:'+(left-5)+'px;"' +
491 @ ' width="'+width+'" height="'+btm+'"></canvas>';
492 @ realCanvas = document.getElementById('timeline-canvas');
493
--- src/timeline.c
+++ src/timeline.c
@@ -320,11 +320,12 @@
320 graph_finish(pGraph, (tmFlags & TIMELINE_DISJOINT)!=0);
321 if( pGraph->nErr ){
322 graph_free(pGraph);
323 pGraph = 0;
324 }else{
325 @ <tr><td><td>
326 @ <div id="grbtm" style="width:%d(pGraph->mxRail*20+30)px;"></div>
327 }
328 }
329 @ </table>
330 timeline_output_graph_javascript(pGraph);
331 }
@@ -482,11 +483,11 @@
483 @ var width = nrail*20;
484 @ for(var i in rowinfo){
485 @ rowinfo[i].y = absoluteY(rowinfo[i].id) + 10 - canvasY;
486 @ rowinfo[i].x = left + rowinfo[i].r*20;
487 @ }
488 @ var btm = absoluteY("grbtm") + 10 - canvasY;
489 @ if( btm<32768 ){
490 @ canvasDiv.innerHTML = '<canvas id="timeline-canvas" '+
491 @ 'style="position:absolute;left:'+(left-5)+'px;"' +
492 @ ' width="'+width+'" height="'+btm+'"></canvas>';
493 @ realCanvas = document.getElementById('timeline-canvas');
494

Keyboard Shortcuts

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