1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-20 13:16:53 +00:00

#3042 Can't do context menu actions with multi entries in web interface

This commit is contained in:
Mitchell Livingston 2010-03-14 17:31:16 +00:00
parent e4d6884d19
commit 6db5b1523b

View file

@ -305,8 +305,10 @@ Transmission.prototype =
boundingRightPad: 20,
boundingBottomPad: 5,
onContextMenu: function(e) {
tr.setSelectedTorrent( $(e.target).closest('.torrent')[0]._torrent, true );
return true;
var closestRow = $(e.target).closest('.torrent')[0]._torrent;
if(!closestRow.isSelected())
tr.setSelectedTorrent( closestRow, true );
return true;
}
});
},