forked from 0x2620/pandora
fix a bug in the url controller that would lead to certain valid item views not being recognized
This commit is contained in:
parent
a0fd292035
commit
126d2e2df0
2 changed files with 3 additions and 3 deletions
|
@ -262,9 +262,9 @@ pandora.URL = (function() {
|
|||
// itemView is the default view,
|
||||
// videoView is the default view if there is a duration
|
||||
[pandora.user.ui.itemView, pandora.user.ui.videoView],
|
||||
pandora.site.itemViews.map(function(view) {
|
||||
Ox.map(pandora.site.itemViews, function(view) {
|
||||
return [
|
||||
'info', pandora.user.ui.videoView
|
||||
pandora.user.ui.itemView, pandora.user.ui.videoView
|
||||
].indexOf(view.id) > -1 ? null : view.id;
|
||||
})
|
||||
)
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue