fix a bug related to filter swapping

This commit is contained in:
rolux 2011-12-23 05:06:06 +00:00
parent 416307f4ef
commit 0525d02dca
2 changed files with 6 additions and 8 deletions

View file

@ -247,6 +247,9 @@ pandora.URL = (function() {
if (pandora.$ui.home) { if (pandora.$ui.home) {
pandora.UI.set({page: ''}); pandora.UI.set({page: ''});
pandora.$ui.home.fadeOutScreen(); pandora.$ui.home.fadeOutScreen();
} else if (pandora.$ui.tv) {
pandora.UI.set({page: ''});
pandora.$ui.home.fadeOutScreen();
} }
if ( if (
pandora.user.ui.item pandora.user.ui.item

View file

@ -157,16 +157,11 @@ pandora.ui.filter = function(id) {
} }
}); });
Ox.Select({ Ox.Select({
items: pandora.site.filters.map(function(filter) { items: Ox.clone(pandora.site.filters),
return {
checked: filter.id == id,
id: filter.id,
title: filter.title
}
}),
max: 1, max: 1,
min: 1, min: 1,
type: 'image' type: 'image',
value: id
}) })
.bindEvent('change', function(data) { .bindEvent('change', function(data) {
var filters = Ox.clone(pandora.user.ui.filters), var filters = Ox.clone(pandora.user.ui.filters),