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.
Commit
76201a088b2c0d40fc591e438f00f9c6f1ff6122
Parent
518439507ada48f…
2 files changed
+1
-1
+3
-2
+1
-1
| --- src/captcha.c | ||
| +++ src/captcha.c | ||
| @@ -399,11 +399,11 @@ | ||
| 399 | 399 | } |
| 400 | 400 | } |
| 401 | 401 | |
| 402 | 402 | /* |
| 403 | 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 | |
| 404 | +** as a hidden parameter with the page that contains the captcha. Knowledge | |
| 405 | 405 | ** of the seed is insufficient for determining the captcha without additional |
| 406 | 406 | ** information held only on the server and never revealed. |
| 407 | 407 | */ |
| 408 | 408 | unsigned int captcha_seed(void){ |
| 409 | 409 | unsigned int x; |
| 410 | 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 | ** 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 @@ | ||
| 320 | 320 | graph_finish(pGraph, (tmFlags & TIMELINE_DISJOINT)!=0); |
| 321 | 321 | if( pGraph->nErr ){ |
| 322 | 322 | graph_free(pGraph); |
| 323 | 323 | pGraph = 0; |
| 324 | 324 | }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> | |
| 326 | 327 | } |
| 327 | 328 | } |
| 328 | 329 | @ </table> |
| 329 | 330 | timeline_output_graph_javascript(pGraph); |
| 330 | 331 | } |
| @@ -482,11 +483,11 @@ | ||
| 482 | 483 | @ var width = nrail*20; |
| 483 | 484 | @ for(var i in rowinfo){ |
| 484 | 485 | @ rowinfo[i].y = absoluteY(rowinfo[i].id) + 10 - canvasY; |
| 485 | 486 | @ rowinfo[i].x = left + rowinfo[i].r*20; |
| 486 | 487 | @ } |
| 487 | - @ var btm = rowinfo[rowinfo.length-1].y + 20; | |
| 488 | + @ var btm = absoluteY("grbtm") + 10 - canvasY; | |
| 488 | 489 | @ if( btm<32768 ){ |
| 489 | 490 | @ canvasDiv.innerHTML = '<canvas id="timeline-canvas" '+ |
| 490 | 491 | @ 'style="position:absolute;left:'+(left-5)+'px;"' + |
| 491 | 492 | @ ' width="'+width+'" height="'+btm+'"></canvas>'; |
| 492 | 493 | @ realCanvas = document.getElementById('timeline-canvas'); |
| 493 | 494 |
| --- 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 |