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

This commit is contained in:
rolux 2011-11-05 23:43:36 +00:00
parent 8caa57d33e
commit c25c4d84cc

View file

@ -99,7 +99,7 @@ pandora.ui.browser = function() {
pageLength: 32, pageLength: 32,
selected: [pandora.user.ui.item], selected: [pandora.user.ui.item],
size: 64, 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, ? pandora.site.user.ui.listSort: pandora.user.ui.listSort,
unique: 'id' unique: 'id'
}) })