forked from 0x2620/pandora
fix a bug in getListData
This commit is contained in:
parent
e881cdb18a
commit
c8413345b9
1 changed files with 3 additions and 6 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue