cancelDownloads

This commit is contained in:
j 2014-05-18 12:44:56 +02:00
commit 30357763e8
3 changed files with 20 additions and 15 deletions

View file

@ -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;
};
};