| 567 | | modifySome($('play', 'toolplay'), function(d) { return !d.isOf(COMPLETE, RUNNING, QUEUED, FINISHING); }); |
|---|
| 568 | | modifySome($('pause', 'toolpause'), function(d) { return (d.state & RUNNING && d.resumable) || (d.state & QUEUED); }); |
|---|
| 569 | | modifySome($('cancel', 'toolcancel'), function(d) { return !d.isOf(FINISHING, CANCELED); }); |
|---|
| 570 | | modifySome($('launch'), function(d) { return d.curFile; }); |
|---|
| 571 | | modifySome($('folder'), function(d) { return d.curFolder; }); |
|---|
| 572 | | modifySome($('delete'), function(d) { return d.is(COMPLETE); }); |
|---|
| 573 | | modifySome($('export'), function(d) { return d.count != 0; }); |
|---|
| 574 | | modifySome($('addchunk', 'removechunk', 'force'), function(d) { return d.isOf(QUEUED, RUNNING, PAUSED); }); |
|---|
| | 565 | modifySome($('play', 'toolplay'), function(d) !d.isOf(COMPLETE, RUNNING, QUEUED, FINISHING)); |
|---|
| | 566 | modifySome($('pause', 'toolpause'), function(d) (d.is(RUNNING) && d.resumable) || d.is(QUEUED)); |
|---|
| | 567 | modifySome($('cancel', 'toolcancel'), function(d) !d.isOf(FINISHING, CANCELED)); |
|---|
| | 568 | modifySome($('launch'), function(d) !!d.curFile); |
|---|
| | 569 | modifySome($('folder'), function(d) !!d.curFolder); |
|---|
| | 570 | modifySome($('delete'), function(d) d.is(COMPLETE)); |
|---|
| | 571 | modifySome($('export'), function(d) !!d.count); |
|---|
| | 572 | modifySome($('addchunk', 'removechunk', 'force'), function(d) d.isOf(QUEUED, RUNNING, PAUSED)); |
|---|