fix bugs related to list selection after deleting items

This commit is contained in:
rolux 2011-10-29 12:31:16 +00:00
parent c3fb0b9b87
commit 826e61a2eb
2 changed files with 5 additions and 2 deletions

View file

@ -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});
}

View file

@ -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();