fix a bug in getListData

This commit is contained in:
rolux 2014-02-03 10:31:43 +05:30
parent e881cdb18a
commit c8413345b9

View file

@ -1335,16 +1335,13 @@ pandora.getListData = function(list) {
// folder it is selected, since for example, a personal // folder it is selected, since for example, a personal
// list may appear again in the featured lists browser // list may appear again in the featured lists browser
if ( if (
list == pandora.user.ui._list (list == pandora.user.ui._list && $list.options('selected').length)
&& $list.options('selected').length || !Ox.isEmpty($list.value(list))
) { ) {
folder = id; folder = id;
ret = false; ret = false;
} else if (!Ox.isEmpty($list.value(list))) {
folder = id
ret = false;
} }
// FIXME: Is there a `return ret` statement missing here? return ret;
}); });
if (folder) { if (folder) {
data = pandora.$ui.folderList[folder].value(list); data = pandora.$ui.folderList[folder].value(list);