Author: damoxc
Revision: 4895
Log:
select a row if there is no row selected when contextmenu is clicked
Diff:
Modified: trunk/deluge/ui/web/js/deluge-torrents.js
===================================================================
--- trunk/deluge/ui/web/js/deluge-torrents.js 2009-03-20 17:22:43 UTC (rev
4894)
+++ trunk/deluge/ui/web/js/deluge-torrents.js 2009-03-20 17:26:24 UTC (rev
4895)
@@ -125,6 +125,10 @@
'rowcontextmenu': {
fn: function(grid, rowIndex, e) {
e.stopEvent();
+ var selection = grid.getSelectionModel();
+ if (!selection.hasSelection()) {
+ selection.selectRow(rowIndex);
+ }
Deluge.Menus.Torrent.showAt(e.getPoint());
}
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"deluge-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/deluge-commit?hl=en
-~----------~----~----~----~------~----~------~--~---