Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Make sure there's any graph elements, before accessing their properties (applies to timelines for tickets, wiki pages, or forum posts). |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | copybtn.js-tweaks |
| Files: | files | file ages | folders |
| SHA3-256: |
66788707344d99499f54b27eedd7d9fc |
| User & Date: | florian 2019-06-05 08:26:00.000 |
Context
|
2019-06-05
| ||
| 20:08 | Tweaks to the "Copy Button". ... (check-in: 8ee5e55e3c user: drh tags: trunk) | |
| 08:26 | Make sure there's any graph elements, before accessing their properties (applies to timelines for tickets, wiki pages, or forum posts). ... (Closed-Leaf check-in: 6678870734 user: florian tags: copybtn.js-tweaks) | |
| 08:06 | Enable closing tooltips by pressing ESC. ... (check-in: fc639a0a02 user: florian tags: copybtn.js-tweaks) | |
Changes
Changes to src/graph.js.
| ︙ | ︙ | |||
563 564 565 566 567 568 569 570 571 572 573 574 575 576 |
}
function dblclickOnNode(e){
var p = tx.rowinfo[parseInt(this.id.match(/\d+$/)[0], 10)-tx.iTopRow];
window.location.href = tx.baseUrl+"/info/"+p.h
e.stopPropagation()
}
function findTxIndex(e){
/* Look at all the graph elements. If any graph elements that is near
** the click-point "e" and has a "data-ix" attribute, then return
** the value of that attribute. Otherwise return -1 */
var x = e.clientX + window.pageXOffset - absoluteX(canvasDiv);
var y = e.clientY + window.pageYOffset - absoluteY(canvasDiv);
var aNode = canvasDiv.childNodes
var nNode = aNode.length;
| > | 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 |
}
function dblclickOnNode(e){
var p = tx.rowinfo[parseInt(this.id.match(/\d+$/)[0], 10)-tx.iTopRow];
window.location.href = tx.baseUrl+"/info/"+p.h
e.stopPropagation()
}
function findTxIndex(e){
if( !tx.rowinfo ) return -1;
/* Look at all the graph elements. If any graph elements that is near
** the click-point "e" and has a "data-ix" attribute, then return
** the value of that attribute. Otherwise return -1 */
var x = e.clientX + window.pageXOffset - absoluteX(canvasDiv);
var y = e.clientY + window.pageYOffset - absoluteY(canvasDiv);
var aNode = canvasDiv.childNodes
var nNode = aNode.length;
|
| ︙ | ︙ |