diff --git a/static/js/pandora/deleteListDialog.js b/static/js/pandora/deleteListDialog.js index 06e606a5..474354a0 100644 --- a/static/js/pandora/deleteListDialog.js +++ b/static/js/pandora/deleteListDialog.js @@ -2,9 +2,9 @@ 'use strict'; -pandora.ui.deleteListDialog = function() { +pandora.ui.deleteListDialog = function(list) { - var listData = pandora.getListData(), + var listData = pandora.getListData(list), $folderList = pandora.$ui.folderList[listData.folder], that = Ox.Dialog({ buttons: [ diff --git a/static/js/pandora/folderList.js b/static/js/pandora/folderList.js index a1d6eaf1..7bddb975 100644 --- a/static/js/pandora/folderList.js +++ b/static/js/pandora/folderList.js @@ -313,7 +313,7 @@ pandora.ui.folderList = function(id) { }, 'delete': function(data) { if (id == 'personal') { - pandora.ui.deleteListDialog().open(); + pandora.ui.deleteListDialog(data.ids[0]).open(); } else if (id == 'favorite') { that.options({selected: []}); pandora.api.unsubscribeFromList({