forked from 0x2620/pandora
fix a bug related to filter swapping
This commit is contained in:
parent
416307f4ef
commit
0525d02dca
2 changed files with 6 additions and 8 deletions
|
@ -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
|
||||
|
|
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue