Skip to content

Commit 4eac31c

Browse files
committed
Merge pull request #130 from minchik/master
Deluge: remove button removes selected torrent not the last one
2 parents 8d57d38 + 1d475cc commit 4eac31c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

interfaces/default/js/deluge.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,9 @@ function getTorrents(){
110110
addClass('btn btn-mini').
111111
html('<i class="icon-remove"></i>').
112112
attr('title', 'Remove torrent').
113+
attr('data-torrent-id', torrent.hash).
113114
click(function(){
114-
setRemoveTorrentModal(torrent.hash);
115+
setRemoveTorrentModal($(this).attr('data-torrent-id'));
115116
});
116117
buttons.append(removeButton);
117118

0 commit comments

Comments
 (0)