Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Gracefully degrade to the old behaviour if a user's browser does not support <code>searchParams()</code> method for URLs. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | vdiff-context-glob |
| Files: | files | file ages | folders |
| SHA3-256: |
9ec88b5771186fdffe3a57972d62d9db |
| User & Date: | george 2021-04-26 19:12:16.062 |
Context
|
2021-04-26
| ||
| 19:26 | Reinforce the previous for the case when access to non-existent field resolves to null (instead of undefined). ... (Closed-Leaf check-in: 8a7620e4a3 user: george tags: vdiff-context-glob) | |
| 19:12 | Gracefully degrade to the old behaviour if a user's browser does not support <code>searchParams()</code> method for URLs. ... (check-in: 9ec88b5771 user: george tags: vdiff-context-glob) | |
| 15:37 | Merge latest changes from trunk ... (check-in: 700ae1075b user: mgagnon tags: vdiff-context-glob) | |
Changes
Changes to src/graph.js.
| ︙ | ︙ | |||
570 571 572 573 574 575 576 |
canvasDiv.className = canvasDiv.className.replace(" sel", "");
}else{
if( tx.fileDiff ){
location.href=tx.baseUrl + "/fdiff?v1="+selRow.h+"&v2="+p.h;
}else{
var href = tx.baseUrl + "/vdiff?from="+selRow.h+"&to="+p.h;
let params = (new URL(document.location)).searchParams;
| > | | | | | | | | | | | | | 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 |
canvasDiv.className = canvasDiv.className.replace(" sel", "");
}else{
if( tx.fileDiff ){
location.href=tx.baseUrl + "/fdiff?v1="+selRow.h+"&v2="+p.h;
}else{
var href = tx.baseUrl + "/vdiff?from="+selRow.h+"&to="+p.h;
let params = (new URL(document.location)).searchParams;
if(typeof params === "object"){
/* When called from /timeline page, If chng=str was specified in the
** QueryString, specify glob=str on the /vdiff page */
let glob = params.get("chng");
if( !glob ){
/* When called from /vdiff page, keep the glob= QueryString if
** present. */
glob = params.get("glob");
}
if( glob ){
href += "&glob=" + glob;
}
}
location.href = href;
}
}
e.stopPropagation()
}
function dblclickOnNode(e){
var p = tx.rowinfo[parseInt(this.id.match(/\d+$/)[0], 10)-tx.iTopRow];
|
| ︙ | ︙ |