fix default item sort in config json

This commit is contained in:
rolux 2011-10-09 13:31:46 +00:00
parent 55b517b54b
commit 460a4217ea
2 changed files with 7 additions and 5 deletions

View file

@ -568,7 +568,7 @@
"icons": "posters", "icons": "posters",
"infoIconSize": 256, "infoIconSize": 256,
"item": "", "item": "",
"itemSort": [{"key": "clip:position", "operator": "+"}], "itemSort": [{"key": "position", "operator": "+"}],
"itemView": "info", "itemView": "info",
"listColumns": ["title", "director", "country", "year", "language", "runtime", "genre"], "listColumns": ["title", "director", "country", "year", "language", "runtime", "genre"],
"listColumnWidth": {}, "listColumnWidth": {},

View file

@ -79,10 +79,12 @@ pandora.URL = (function() {
state.view = pandora.user.ui.itemView; state.view = pandora.user.ui.itemView;
state.sort = pandora.user.ui.itemSort; state.sort = pandora.user.ui.itemSort;
} }
if (pandora.user.ui.mapSelection) { if (state.view == 'map') {
state.span = '@' + pandora.user.ui.mapSelection; if (pandora.user.ui.mapSelection) {
} else if (pandora.user.ui.mapFind) { state.span = '@' + pandora.user.ui.mapSelection;
state.span = '@' + pandora.user.ui.mapFind; } else if (pandora.user.ui.mapFind) {
state.span = '@' + pandora.user.ui.mapFind;
}
} }
/* /*
: pandora.isClipView(pandora.user.ui.itemView) : pandora.isClipView(pandora.user.ui.itemView)