From cf9722700f83fa2db3b5cf8b3d64ddedb0881e04 Mon Sep 17 00:00:00 2001 From: rolux Date: Sat, 17 Sep 2011 13:30:46 +0000 Subject: [PATCH] use getListData in home.js --- static/js/pandora/ui/home.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/static/js/pandora/ui/home.js b/static/js/pandora/ui/home.js index 61cb8eb6..a89e3f7a 100644 --- a/static/js/pandora/ui/home.js +++ b/static/js/pandora/ui/home.js @@ -110,11 +110,8 @@ pandora.ui.home = function() { }) .bindEvent({ click: function() { - if (pandora.user.ui.list) { - Ox.forEach(pandora.$ui.folderList, function($list) { - $list.options({selected: []}); - }); - } + var folder = pandora.getListData().folder; + folder && pandora.$ui.folderList[folder].options({selected: []}); pandora.URL.set('/?find=' + $findInput.value()); that.fadeOutScreen(); }