diff --git a/static/js/pandora/pandora.js b/static/js/pandora/pandora.js index b91f9971..3da7cf87 100644 --- a/static/js/pandora/pandora.js +++ b/static/js/pandora/pandora.js @@ -181,7 +181,9 @@ pandora.reloadList = function() { }); pandora.$ui.list.bindEvent({ init: function(event, data) { - var folder = listData.status == 'private' ? 'personal' : listData.status; + // fixme: this will not work for lists in the favorites folder + // (but then it's also unlikely they'll have to be reloaded) + var folder = listData.status != 'featured' ? 'personal' : 'featured'; pandora.$ui.folderList[folder].value(listData.id, 'items', data.items); } }) diff --git a/static/js/pandora/ui/list.js b/static/js/pandora/ui/list.js index de4dfc55..36e81403 100644 --- a/static/js/pandora/ui/list.js +++ b/static/js/pandora/ui/list.js @@ -702,16 +702,8 @@ pandora.ui.list = function() { // fixme: remove view argument operator: '' } }, function(result) { - var folder; - if (drag.action == 'move') { - folder = drag.source.status != 'featured' ? 'personal' : 'featured'; - pandora.$ui.folderList[folder].value( - drag.source.id, 'items', - pandora.$ui.folderList[folder].value(drag.source.id, 'items') - data.ids.length - ); - } - folder = drag.target.status != 'featured' ? 'personal' : 'featured'; - Ox.print(drag.source.status, '//////', drag.target.status) + var folder = drag.target.status != 'featured' ? 'personal' : 'featured'; + //Ox.print(drag.source.status, '//////', drag.target.status) pandora.$ui.folderList[folder].value( drag.target.id, 'items', result.data.items