fix downloading to list

This commit is contained in:
rlx 2016-01-17 16:54:53 +05:30
parent 0fa8c8602f
commit 8a1c83b5fc

View file

@ -201,13 +201,13 @@ oml.ui.infoView = function(externalData, isMixed) {
type: 'image' type: 'image'
}) })
.bindEvent({ .bindEvent({
click: function() { click: function(data_) {
data.mediastate = 'transferring'; data.mediastate = 'transferring';
that.updateElement(data, $data); that.updateElement(data, $data);
oml.api.download(Ox.extend({ oml.api.download(Ox.extend({
id: ui.item, id: ui.item,
}, data.id == ':' ? {} : { }, data_.id == ':' ? {} : {
list: data.id.slice(1) list: data_.id.slice(1)
}), function(result) { }), function(result) {
// ... // ...
}); });