some more work towards poster column in list view
This commit is contained in:
parent
ba31bbe980
commit
c8a9e45588
1 changed files with 12 additions and 3 deletions
|
@ -547,20 +547,29 @@ pandora.ui.list = function() {
|
|||
|
||||
}
|
||||
|
||||
if (['grid', 'timelines'].indexOf(pandora.user.ui.listView) > -1) {
|
||||
if (['list', 'grid', 'timelines'].indexOf(pandora.user.ui.listView) > -1) {
|
||||
that.bindEvent({
|
||||
pandora_icons: function(data) {
|
||||
that.options({
|
||||
// fixme: doesn't update title icon, passes useless options
|
||||
hasIcons() && that.options({
|
||||
borderRadius: data.value == 'posters' ? 0 : 16,
|
||||
defaultRatio: data.value == 'posters' ? 5/8 : 1
|
||||
}).reloadList(true);
|
||||
},
|
||||
pandora_showsiteposter: function() {
|
||||
pandora.user.ui.icons == 'posters' && that.reloadList(true);
|
||||
// fixme: should be disabled if ui.icons != 'posters'
|
||||
hasIcons() && pandora.user.ui.icons == 'posters' && that.reloadList(true);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function hasIcons() {
|
||||
return (
|
||||
pandora.user.ui.listView == 'list'
|
||||
&& pandora.user.ui.listColumns.indexOf('posterRatio') > -1
|
||||
) || ['grid', 'timelines'].indexOf(pandora.user.ui.listView) > -1;
|
||||
}
|
||||
|
||||
return that;
|
||||
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue