Changeset 10378


Ignore:
Timestamp:
Mar 14, 2010, 5:31:16 PM (12 years ago)
Author:
livings124
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/web/javascript/transmission.js

    r10353 r10378  
    306306                        boundingBottomPad: 5,
    307307                        onContextMenu:     function(e) {
    308                                 tr.setSelectedTorrent( $(e.target).closest('.torrent')[0]._torrent, true );
    309                                 return true;
     308                var closestRow = $(e.target).closest('.torrent')[0]._torrent;
     309                if(!closestRow.isSelected())
     310                    tr.setSelectedTorrent( closestRow, true );
     311                return true;
    310312                        }
    311313                });
Note: See TracChangeset for help on using the changeset viewer.