From c8413345b975dde51b317910ba7ef2b37a2e4747 Mon Sep 17 00:00:00 2001 From: rolux Date: Mon, 3 Feb 2014 10:31:43 +0530 Subject: [PATCH] fix a bug in getListData --- static/js/utils.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/static/js/utils.js b/static/js/utils.js index 321a649a..e449c6cc 100644 --- a/static/js/utils.js +++ b/static/js/utils.js @@ -1335,16 +1335,13 @@ pandora.getListData = function(list) { // folder it is selected, since for example, a personal // list may appear again in the featured lists browser if ( - list == pandora.user.ui._list - && $list.options('selected').length + (list == pandora.user.ui._list && $list.options('selected').length) + || !Ox.isEmpty($list.value(list)) ) { folder = id; 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) { data = pandora.$ui.folderList[folder].value(list);