From c25c4d84cc15576e788fd976ab24fd8cc24a79d0 Mon Sep 17 00:00:00 2001 From: rolux Date: Sat, 5 Nov 2011 23:43:36 +0000 Subject: [PATCH] fix a bug where opening an item from clip view, sorted by text or position, would send an invalid sort key to the item view movies browser --- static/js/pandora/browser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/pandora/browser.js b/static/js/pandora/browser.js index 37c38f098..de9628ec5 100644 --- a/static/js/pandora/browser.js +++ b/static/js/pandora/browser.js @@ -99,7 +99,7 @@ pandora.ui.browser = function() { pageLength: 32, selected: [pandora.user.ui.item], size: 64, - sort: ['text', 'position'].indexOf(pandora.user.ui.listSort) > -1 + sort: ['text', 'position'].indexOf(pandora.user.ui.listSort[0].key) > -1 ? pandora.site.user.ui.listSort: pandora.user.ui.listSort, unique: 'id' })