forked from 0x2620/pandora
fix #2277 (sort shouldn't be 'year,director,title' for guests)
This commit is contained in:
parent
851769731a
commit
1b6a535456
1 changed files with 3 additions and 3 deletions
|
@ -29,11 +29,11 @@ pandora.URL = (function() {
|
||||||
if (pandora.user.ui.section == 'items') {
|
if (pandora.user.ui.section == 'items') {
|
||||||
if (!pandora.user.ui.item) {
|
if (!pandora.user.ui.item) {
|
||||||
state.view = pandora.user.ui.listView;
|
state.view = pandora.user.ui.listView;
|
||||||
state.sort = pandora.user.ui.listSort;
|
state.sort = [pandora.user.ui.listSort[0]];
|
||||||
state.find = pandora.user.ui.find;
|
state.find = pandora.user.ui.find;
|
||||||
} else {
|
} else {
|
||||||
state.view = pandora.user.ui.itemView;
|
state.view = pandora.user.ui.itemView;
|
||||||
state.sort = pandora.user.ui.itemSort;
|
state.sort = [pandora.user.ui.itemSort[0]];
|
||||||
}
|
}
|
||||||
if (state.view == 'map') {
|
if (state.view == 'map') {
|
||||||
state.span = pandora.user.ui.mapFind
|
state.span = pandora.user.ui.mapFind
|
||||||
|
@ -58,7 +58,7 @@ pandora.URL = (function() {
|
||||||
var editPoints = pandora.user.ui.edits[state.item] || {};
|
var editPoints = pandora.user.ui.edits[state.item] || {};
|
||||||
if (state.item) {
|
if (state.item) {
|
||||||
state.view = pandora.user.ui.editView;
|
state.view = pandora.user.ui.editView;
|
||||||
state.sort = pandora.user.ui.editSort;
|
state.sort = [pandora.user.ui.editSort[0]];
|
||||||
}
|
}
|
||||||
state.span = editPoints.clip || [].concat(
|
state.span = editPoints.clip || [].concat(
|
||||||
editPoints.position
|
editPoints.position
|
||||||
|
|
Loading…
Reference in a new issue