fix a bug in the url controller that would lead to certain valid item views not being recognized

This commit is contained in:
rolux 2011-10-13 12:47:11 +00:00
commit 126d2e2df0
2 changed files with 3 additions and 3 deletions

View file

@ -32,7 +32,7 @@ pandora.ui.viewSelect = function() {
if (pandora.isClipView(key)) {
// ... to a clip view, set listSelection to empty
set.listSelection = [];
} else if (['title', 'position'].indexOf(ui.listSort[0].key) > -1) {
} else if (['text', 'position'].indexOf(ui.listSort[0].key) > -1) {
// ... to a non-clip view, with a sort key that only exists
// in clip views, reset listSort to the default listSort
set.listSort = pandora.site.user.ui.listSort;