display the torrents menu on the rowcontextmenu event

This commit is contained in:
Damien Churchill 2009-03-16 22:23:56 +00:00
parent 61d028a8ce
commit 95ac4397a3

View File

@ -120,5 +120,13 @@ Deluge.Torrents.Grid = new Ext.grid.GridPanel({
autoExpandColumn: 'name',
deferredRender:false,
autoScroll:true,
margins: '5 5 0 0'
margins: '5 5 0 0',
listeners: {
'rowcontextmenu': {
fn: function(grid, rowIndex, e) {
e.stopEvent();
Deluge.Menus.Torrent.showAt(e.getPoint());
}
}
}
})