Fix file list enabled/disabled logic

* Files that are either 100% downloaded OR streamble should be enabled
* Disabled files should not be clickable

This fixes both bugs.
This commit is contained in:
DC
2016-04-06 02:38:07 -07:00
parent 5022877b04
commit 28c386d916
2 changed files with 3 additions and 2 deletions

View File

@@ -24,7 +24,7 @@ function dispatcher (...args) {
// Don't click on whatever is below the button
e.stopPropagation()
// Don't regisiter clicks on disabled buttons
if (e.target.classList.contains('disabled')) return
if (e.currentTarget.classList.contains('disabled')) return
_dispatch.apply(null, args)
}
}