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:
parent
e4d6884d19
commit
6db5b1523b
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
});
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue