correctly set order when sorting via menu

This commit is contained in:
rolux 2013-02-11 12:38:05 +05:30
parent 071873111d
commit 0167e70710

View file

@ -215,7 +215,7 @@ pandora.ui.mainMenu = function() {
operator = value == 'ascending' ? '+' : '-'; operator = value == 'ascending' ? '+' : '-';
pandora.UI.set({listSort: [{key: key, operator: operator}]}); pandora.UI.set({listSort: [{key: key, operator: operator}]});
} else if (data.id == 'listsort') { } else if (data.id == 'listsort') {
pandora.UI.set({listSort: [{key: value, operator: ''}]}); pandora.UI.set({listSort: [{key: value, operator: pandora.getSortOperator(value)}]});
} else if (data.id == 'settheme') { } else if (data.id == 'settheme') {
Ox.Theme(value); Ox.Theme(value);
pandora.UI.set('theme', value); pandora.UI.set('theme', value);