From 1b6a53545615bf1f42d3c6708c62188fc8dc3107 Mon Sep 17 00:00:00 2001 From: rolux Date: Wed, 12 Feb 2014 11:08:57 +0000 Subject: [PATCH] fix #2277 (sort shouldn't be 'year,director,title' for guests) --- static/js/URL.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/static/js/URL.js b/static/js/URL.js index 223f16835..7207954bc 100644 --- a/static/js/URL.js +++ b/static/js/URL.js @@ -29,11 +29,11 @@ pandora.URL = (function() { if (pandora.user.ui.section == 'items') { if (!pandora.user.ui.item) { 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; } else { state.view = pandora.user.ui.itemView; - state.sort = pandora.user.ui.itemSort; + state.sort = [pandora.user.ui.itemSort[0]]; } if (state.view == 'map') { state.span = pandora.user.ui.mapFind @@ -58,7 +58,7 @@ pandora.URL = (function() { var editPoints = pandora.user.ui.edits[state.item] || {}; if (state.item) { state.view = pandora.user.ui.editView; - state.sort = pandora.user.ui.editSort; + state.sort = [pandora.user.ui.editSort[0]]; } state.span = editPoints.clip || [].concat( editPoints.position