cancelDownloads
This commit is contained in:
parent
e4ca454c41
commit
30357763e8
3 changed files with 20 additions and 15 deletions
|
|
@ -65,7 +65,12 @@ oml.ui.transfersDialog = function() {
|
|||
})
|
||||
.bindEvent({
|
||||
click: function() {
|
||||
// ...
|
||||
var ids = $list.options('selected');
|
||||
ids && ids.length && oml.api.cancelDownloads({
|
||||
ids: ids
|
||||
}, function() {
|
||||
$list.reloadList(true);
|
||||
});
|
||||
}
|
||||
})
|
||||
.appendTo($item),
|
||||
|
|
@ -122,4 +127,4 @@ oml.ui.transfersDialog = function() {
|
|||
|
||||
return that;
|
||||
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue