allow for selecting lists via list menu

This commit is contained in:
rolux 2011-11-07 12:12:13 +00:00
commit 6be21617cd
4 changed files with 52 additions and 33 deletions

View file

@ -317,12 +317,23 @@ pandora.ui.folders = function() {
}
that.bindEvent({
pandora_find: function() {
var previousUI = pandora.UI.getPrevious();
var folder = pandora.getListData().folder,
list = pandora.user.ui._list,
previousList = pandora.UI.getPrevious()._list;
if (list != previousList) {
Ox.forEach(pandora.$ui.folderList, function($list, id) {
id != folder && $list.options('selected', []);
});
folder && pandora.$ui.folderList[folder].options({selected: [list]});
}
/*
if (!pandora.user.ui._list && previousUI._list) {
pandora.$ui.folderList[pandora.getListData(previous)]
Ox.forEach(pandora.$ui.folderList, function($list) {
$list.options({selected: []});
});
}
*/
}
})
return that;