fix a bug that would keep the 'Always Show Site Poster' preference from being sticky

This commit is contained in:
rolux 2012-03-20 11:51:28 +00:00
parent 48f48bffe6
commit 528e46731d

View file

@ -66,7 +66,7 @@ pandora.ui.mainMenu = function() {
}) } }) }
], pandora.site.media.importPosters ? [ ], pandora.site.media.importPosters ? [
{}, {},
{ id: 'showsiteposter', title: 'Always Show ' + pandora.site.site.name + ' Poster', checked: ui.showSitePoster } { id: 'showsiteposters', title: 'Always Show ' + pandora.site.site.name + ' Poster', checked: ui.showSitePosters }
] : [] ] : []
) }, ) },
{ id: 'timelines', title: 'Timelines', items: [ { id: 'timelines', title: 'Timelines', items: [
@ -214,8 +214,8 @@ pandora.ui.mainMenu = function() {
} 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);
} else if (data.id == 'showsiteposter') { } else if (data.id == 'showsiteposters') {
pandora.UI.set('showSitePoster', data.checked) pandora.UI.set('showSitePosters', data.checked)
} else if (Ox.startsWith(data.id, 'sortfilter')) { } else if (Ox.startsWith(data.id, 'sortfilter')) {
var filters = Ox.clone(ui.filters), var filters = Ox.clone(ui.filters),
id = data.id.replace('sortfilter', ''), id = data.id.replace('sortfilter', ''),