get right data key for hsl

This commit is contained in:
j 2011-09-30 16:35:04 +02:00
parent af61df1f00
commit b4f1b59718

View file

@ -236,7 +236,7 @@ pandora.ui.list = function() {
url = '/' + data.id.split('/')[0] + '/' + height + 'p' + data['in'] + '.jpg',
sortKey = sort[0].key.split(':').pop(),
info = ['hue', 'saturation', 'lightness'].indexOf(sortKey) > -1
? Ox.formatColor(data[sort[0].key], sortKey)
? Ox.formatColor(data[sortKey], sortKey)
: data[['title', 'director'].indexOf(sort[0].key) > -1 ? 'year' : sort[0].key];
return {
height: height,