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) {
pandora.UI.set({page: ''});
pandora.$ui.home.fadeOutScreen();
} else if (pandora.$ui.tv) {
pandora.UI.set({page: ''});
pandora.$ui.home.fadeOutScreen();
}
if (
pandora.user.ui.item

View file

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