From 0452e32b79e84610aad24f24d2430147a66645e8 Mon Sep 17 00:00:00 2001 From: rolux Date: Mon, 7 Nov 2011 19:40:09 +0000 Subject: [PATCH] fix a bug where the selected item in a list would not be sticky --- static/js/pandora/UI.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/static/js/pandora/UI.js b/static/js/pandora/UI.js index 2fb51a3d..2c4ec793 100644 --- a/static/js/pandora/UI.js +++ b/static/js/pandora/UI.js @@ -79,13 +79,13 @@ pandora.UI = (function() { } add.itemFind = pandora.isItemFind(args.find) ? args.find : pandora.site.user.ui.itemFind; + } else { + list = self.previousUI._list; } - // it is important to check for find first, so that if find - // changes list, pandora.user.ui._list is correct here - item = args['item'] || pandora.user.ui.item, - list = pandora.user.ui._list || self.previousUI._list; - + item = args['item'] || pandora.user.ui.item; + // it is important to check for find first, so that + // if find changes list, list is correct here if (!pandora.user.ui.lists[list]) { add['lists.' + that.encode(list)] = {}; }