From 95ac4397a31f7c7536ba0c296f8bb3bb80a97dd9 Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Mon, 16 Mar 2009 22:23:56 +0000 Subject: [PATCH] display the torrents menu on the rowcontextmenu event --- deluge/ui/web/js/deluge-torrents.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/deluge/ui/web/js/deluge-torrents.js b/deluge/ui/web/js/deluge-torrents.js index bfacc10a4..4cf6311c8 100644 --- a/deluge/ui/web/js/deluge-torrents.js +++ b/deluge/ui/web/js/deluge-torrents.js @@ -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()); + } + } + } })