From c6c032d3d9a76ad691bbe401cdc6e96453d0fce0 Mon Sep 17 00:00:00 2001 From: rlx Date: Sun, 17 Jan 2016 16:59:33 +0530 Subject: [PATCH] fix downloading to list --- static/js/infoView.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/static/js/infoView.js b/static/js/infoView.js index b81c3ba..7d03cb4 100644 --- a/static/js/infoView.js +++ b/static/js/infoView.js @@ -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) { // ... }); }