some work towards poster column in list view

This commit is contained in:
rolux 2011-11-02 19:46:06 +00:00
parent 74e9e3ee8c
commit 9ff0683e22
2 changed files with 14 additions and 12 deletions

View file

@ -31,7 +31,6 @@ pandora.ui.folderBrowserList = function(id) {
}, },
*/ */
id: 'id', id: 'id',
operator: '+',
title: $('<img>').attr({ title: $('<img>').attr({
src: Ox.UI.getImageURL('symbolIcon') src: Ox.UI.getImageURL('symbolIcon')
}), }),

View file

@ -16,7 +16,7 @@ pandora.ui.list = function() {
Ox.print('$$$$', keys) Ox.print('$$$$', keys)
*/ */
that = Ox.TextList({ that = Ox.TextList({
columns: /*Ox.merge([{ columns: Ox.merge([{
align: 'center', align: 'center',
defaultWidth: 16, defaultWidth: 16,
format: function(value, data) { format: function(value, data) {
@ -55,11 +55,14 @@ pandora.ui.list = function() {
}); });
}, },
id: 'posterRatio', id: 'posterRatio',
operator: '+', resizable: false,
position: 0, ///*
removable: true, title: '<img src="' + Ox.UI.getImageURL(
title: 'Poster', pandora.user.ui.icons == 'posters'
*//* ? 'symbolSetPoster' : 'symbolIcon'
) + '" style="width: 12px; height: 12px; margin: 0 0 0 -2px">',
//*/
/*
title: $('<img>').attr({ title: $('<img>').attr({
src: Ox.UI.getImageURL( src: Ox.UI.getImageURL(
pandora.user.ui.icons == 'posters' pandora.user.ui.icons == 'posters'
@ -69,12 +72,12 @@ pandora.ui.list = function() {
.css({ .css({
width: '12px', width: '12px',
height: '12px', height: '12px',
padding: '2px', margin: '0 0 0 -2px'
}), }),
*//* */
visible: true, visible: pandora.user.ui.listColumns.indexOf('posterRatio') > -1,
width: 16 width: 16
}], */Ox.map(pandora.site.sortKeys, function(key) { }], Ox.map(pandora.site.sortKeys, function(key) {
var position = pandora.user.ui.listColumns.indexOf(key.id); var position = pandora.user.ui.listColumns.indexOf(key.id);
return { return {
align: ['string', 'text'].indexOf( align: ['string', 'text'].indexOf(
@ -92,7 +95,7 @@ pandora.ui.list = function() {
visible: position > -1, visible: position > -1,
width: pandora.user.ui.listColumnWidth[key.id] || key.columnWidth width: pandora.user.ui.listColumnWidth[key.id] || key.columnWidth
}; };
})/*)*/, })),
columnsMovable: true, columnsMovable: true,
columnsRemovable: true, columnsRemovable: true,
columnsResizable: true, columnsResizable: true,