mirror of
https://github.com/klaussilveira/gitlist.git
synced 2025-11-18 03:30:55 +01:00
Click handler for the commit dots
This commit is contained in:
@@ -465,7 +465,8 @@
|
||||
})
|
||||
.data('commit', commit)
|
||||
.mouseover( handleCommitMouseover )
|
||||
.mouseout( handleCommitMouseout);
|
||||
.mouseout( handleCommitMouseout )
|
||||
.click( handleCommitClick );
|
||||
|
||||
$.each( commit.children, function ( idx, thisChild ) {
|
||||
|
||||
@@ -539,6 +540,10 @@
|
||||
detailOverlay.hide();
|
||||
}
|
||||
|
||||
function handleCommitClick( evt ) {
|
||||
window.open( this.data('commit').details );
|
||||
}
|
||||
|
||||
function getXPositionForColumnNumber( columnNumber ) {
|
||||
// we want the column's center point
|
||||
return ( paper.width - ( columnNumber * cfg.columnWidth ) + (cfg.columnWidth / 2 ));
|
||||
|
||||
Reference in New Issue
Block a user