if the index property of the images in the poster list is not a string, Ox.api will coerce it to string in the positions request, which will cause a select event on info page load

This commit is contained in:
rolux 2012-06-30 20:54:46 +00:00
parent 76f6a65a7f
commit 86e2ec8d87

View file

@ -680,7 +680,9 @@ pandora.ui.infoView = function(data) {
id: data.id, id: data.id,
keys: [ui.icons == 'posters' ? 'posters' : 'frames'] keys: [ui.icons == 'posters' ? 'posters' : 'frames']
}, 0, function(result) { }, 0, function(result) {
var images = result.data[ui.icons == 'posters' ? 'posters' : 'frames'], var images = result.data[ui.icons == 'posters' ? 'posters' : 'frames'].map(function(image) {
return Ox.extend(image, {index: image.index.toString()});
}),
selectedImage = images.filter(function(image) { selectedImage = images.filter(function(image) {
return image.selected; return image.selected;
})[0]; })[0];