fix downloading to list

This commit is contained in:
rlx 2016-01-17 16:59:33 +05:30
parent 8a1c83b5fc
commit c6c032d3d9

View file

@ -204,11 +204,10 @@ oml.ui.infoView = function(externalData, isMixed) {
click: function(data_) {
data.mediastate = 'transferring';
that.updateElement(data, $data);
oml.api.download(Ox.extend({
id: ui.item,
}, data_.id == ':' ? {} : {
list: data_.id.slice(1)
}), function(result) {
oml.api.addListItems({
items: [ui.item],
list: data_.id
}, function(result) {
// ...
});
}