Fixes for PR #607

This commit is contained in:
Feross Aboukhadijeh
2016-05-31 12:12:25 -07:00
parent 71b08304f2
commit c82bdbd39d
5 changed files with 34 additions and 28 deletions

View File

@@ -39,7 +39,7 @@ function Header (state) {
<i
class='icon add'
title='Add torrent'
onclick=${dispatcher('openAddFiles')}>
onclick=${dispatcher('openFiles')}>
add
</i>
`

View File

@@ -244,7 +244,7 @@ function TorrentList (state) {
handleClick = dispatcher('play', infoHash, index)
} else {
icon = 'description' /* file icon, opens in OS default app */
handleClick = dispatcher('openFile', infoHash, index)
handleClick = dispatcher('openItem', infoHash, index)
}
var rowClass = ''
if (!isSelected) rowClass = 'disabled' // File deselected, not being torrented