diff --git a/static/js/pandora/list.js b/static/js/pandora/list.js index 306cdec5..aa1d3d75 100644 --- a/static/js/pandora/list.js +++ b/static/js/pandora/list.js @@ -408,7 +408,7 @@ pandora.ui.list = function() { list: pandora.user.ui._list, items: data.ids }, function() { - that.options({selected: []}); + pandora.UI.set({listSelection: []}); pandora.reloadList(); }); }, @@ -533,6 +533,9 @@ pandora.ui.list = function() { pandora.$ui.selected.html(pandora.ui.status('selected', result.data)); }); }, + pandora_listselection: function(data) { + that.options({selected: data.value}); + }, pandora_listsort: function(data) { that.options({sort: data.value}); } diff --git a/static/js/pandora/utils.js b/static/js/pandora/utils.js index 7e2416c7..a99c4bac 100644 --- a/static/js/pandora/utils.js +++ b/static/js/pandora/utils.js @@ -721,7 +721,7 @@ pandora.reloadList = function() { load: function(data) { pandora.$ui.list.gainFocus(); // fixme: what is this? - if (data) pandora.$ui.list.options({selected: [data.items]}); + // if (data) pandora.$ui.list.options({selected: [data.items]}); } }) .reloadList();