mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 04:18:39 +00:00
#3042 Can't do context menu actions with multi entries in web interface
This commit is contained in:
@@ -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;
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user