getSort: only return one sort object (otherwise, multiple comma-separated keys will appear in the URL)
This commit is contained in:
parent
47f59c26ae
commit
bd72abae6e
1 changed files with 3 additions and 2 deletions
|
@ -1529,8 +1529,9 @@ pandora.getSort = function(state, val, callback) {
|
||||||
if (val[0].key == 'index') {
|
if (val[0].key == 'index') {
|
||||||
pandora.api.getEdit({id: state.item}, function(result) {
|
pandora.api.getEdit({id: state.item}, function(result) {
|
||||||
if (result.data.type == 'smart') {
|
if (result.data.type == 'smart') {
|
||||||
state.sort = state.sort.slice(1);
|
if (state.sort.length > 1) {
|
||||||
if (state.sort.length == 0) {
|
state.sort = [state.sort[1]];
|
||||||
|
} else {
|
||||||
state.sort = [
|
state.sort = [
|
||||||
pandora.site.user.ui.editSort.filter(function(sort) {
|
pandora.site.user.ui.editSort.filter(function(sort) {
|
||||||
return sort.key != 'index';
|
return sort.key != 'index';
|
||||||
|
|
Loading…
Reference in a new issue